Open the last closed tab in Android Studio

AndroidAndroid StudioKeyboard Shortcuts

Android Problem Overview


I'm new to Android Studio, and wanted to know if there are any shortcut / option to re-open the last closed tab.

Android Solutions


Solution 1 - Android

There is no shortcut assigned, but you can easily assign a new one:

Go to IDE settings | Keymap | Main menu | Window | Editor Tabs | Reopen Closed Tab (type reopen into the filter field to find it faster), right click on that item and select Add Keyboard Shortcut

Update: As stated in another answer, you can also use Ctrl + E to see a list of all recently viewed files. Additionally, you can use Ctrl + Shift + E to see a list of all recently edited files, which is handy when working on multiple files.

Solution 2 - Android

For Windows -> ctrl+e

For macOS -> cmd+e

It will show a popup window for the files you visited previously.

Solution 3 - Android

The shortcut is cmd[ (CtrlAlt on Windows). It correspond to Navigate > Back.

It will bring your cursor where it was previously, re-opening the tab if needed, and you can do it many times.

Solution 4 - Android

You may don't have to google this thing.

There are some shortcut given in Android Studio Screen :) :)

Android Studio Says

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJose GarciaView Question on Stackoverflow
Solution 1 - AndroidDarek KayView Answer on Stackoverflow
Solution 2 - AndroidPranav PView Answer on Stackoverflow
Solution 3 - AndroidminipifView Answer on Stackoverflow
Solution 4 - AndroidPratik ButaniView Answer on Stackoverflow