Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open entire module file tree in Android Studio

Not sure if this is possible, but I have many multi module projects. Each module essentially follows module/src/main/java/packages... This is shown in photo below

file structure

Currently I have to click src -> main -> java -> etc....

Ideally I would like to just click src and have the whole directory open up. This would save me a good amount of time in the long run. I have searched for an Android Studio setting that does this but no luck. Would I have to write some kind of script for this? I'm lost on how to achieve this

Thanks

like image 826
Kyle Avatar asked Jan 06 '20 20:01

Kyle


2 Answers

You can use the key * on the numeric keypad, it will automatically expand the tree. This setting can be configured with a different key by searching:

Fully Expand Tree Node

like image 171
Yoann Hercouet Avatar answered Oct 18 '22 09:10

Yoann Hercouet


I don't think exactly what you're looking for exists (to my knowledge, and I've been using Android Studio since its beta).

I think the closest thing you're looking for are these two things: 'Compact Middle Packages' and/or setting your project view to 'Android' (see screenshots below).

I hope this helps, if not, you could create a feature request to the Android Studio team.

12

like image 26
Joshua King Avatar answered Oct 18 '22 10:10

Joshua King