Jose Garcia
Jose Garcia

Reputation: 793

Open the last closed tab in Android Studio

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

Upvotes: 77

Views: 16098

Answers (4)

Pranav P
Pranav P

Reputation: 1815

For Windows -> ctrl+e

For macOS -> cmd+e

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

Upvotes: 32

Pratik Butani
Pratik Butani

Reputation: 62419

You may don't have to google this thing.

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

Android Studio Says

Upvotes: 8

minipif
minipif

Reputation: 4866

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.

Upvotes: 13

Darek Kay
Darek Kay

Reputation: 16669

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.

Upvotes: 110

Related Questions