shortcut in Android Studio to locate the current editing src file

Roy Ma picture Roy Ma · Aug 4, 2014 · Viewed 21.7k times · Source

Do you know how to check the location of current editing file in the project tree panel (the very left panel of the Android Studio), except manually. (The worst case is that all the folders there are collapsed)

The Navigate->Class shortcut can show me the src file in edit panel (central panel) quickly. Then I want to know the src file's logic location in project tree (left panel), so that I can add some new files in the same package quickly. (e.g. right-click the package and add new Class).

Currently, I have to expand the project tree and find it folder by folder.

Actually, in Xcode there is such a shortcut named "Reveal in Project Navigate"

What a convenient way it is.

I wonder whether this is also supported in Android studio.

Thanks

Answer

AliSh picture AliSh · Sep 7, 2015

You can use the Scroll from Source button in the Project Toolbar in the left of Android Studio.

locate

Another solution is Alt+F1+1. You can also read Locate current file in IntelliJ for more answers.