I find myself with many files open in the editor (in separated tabs), and sometimes I want to find specific file in the project explorer.
Does there is any shortcut to reveal the file in the project window ?
EDIT to do the question more clear I add a picture:
There isn't a single key combo that can do this, as far as I know, but you can go with
Alt + F1
followed by either 1
or enter
Alt + Shift + 1
followed by either 1
or enter
Option + F1
followed by either 1
or enter
Android Studio is based on intelliJ, which has a function to open the current file or symbol in various views. The default key combo (in Windows) is ALT + F1
.
This offers to open the current file or symbol in a bunch of different views, but the first option (with shortcut key 1
) is the project view.
It's the same as choosing the Navigate
> Select in...
menu option, followed by option 1.
Note that you can customise the key mappings, or select other defaults instead of the default intelliJ configuration, so this might not be the case with your set up.
You can check the key mapping in settings
> Key map
and search for Select In...
or, more simply, click the navigate menu and look at the Select In...
option to see the shortcut key displayed in the drop down.
You can go to Navigate -> Select In
, which has default shortcut Option+F1
on macOS.
For Xcode, the shortcut is Cmd+Shift+J
. If you want the same, follow these steps
Android Studio -> Preferences -> Keymap
Select In
in Navigate
Add Keyboard Shortcut
Cmd+Shift+J
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With