13

I am using the latest version of Android Studio. Every time I close Android Studio or start debugging/executing the project, the "Project Files" tree collapses.

Is there a setting to keep the tree expanded in the current state or to expand the whole tree again?

6
  • 1
    Don't use Project Files section. Use Android or just Project. They shouldn't collapse. Command+1 is the shortcut to open Project page. Commented Mar 20, 2015 at 8:30
  • Thanks. Funny that I missed that... Commented Mar 20, 2015 at 8:47
  • Did it actually work? Should I make it and asnwer for you to accept? Commented Mar 20, 2015 at 8:50
  • Yes it worked perfectly. Please make it an answer. Commented Mar 20, 2015 at 8:50
  • On the windows platform - the Android tree is collapsed at startup - but the tabs are still persisted. I can't seem to find a shortcut to open the tree at the tab path. So I filled an enhancement request: http://code.google.com/p/android/issues/detail?id=222172 Commented Sep 11, 2016 at 8:18

3 Answers 3

12

Don't use Project Files section. Use Android or just Project sections. They shouldn't collapse.

PS: Also Command+1 is the shortcut to open Project page.

Sign up to request clarification or add additional context in comments.

3 Comments

How is that not a bug?
I use Android and everything is collapsed each time I start the app
Seems to be a bug to me too, as Android view now collapses when building / running a project. The only thing I've found thus far is to enable Autoscroll from Source in the Project tab settings as shown in the following image link. This will expand the tree to show the file you are currently viewing in editor, which is better than nothing.
10

Very annoying. You can solve it by clicking the gear icon, and select Autoscroll from source. Then, anytime you select a tab, it will expand and select the file in the tree view.

Comments

0

This worked for me:

  • Expand the packages
  • Click gear icon at the top
  • Untick Compact Middle Packages

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.