简体   繁体   中英

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

文件结构

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

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

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

Set your project view to 'Android' and select 'Flatten Packages' as shown in image.

在此处输入图片说明

When you expand java it will show list of all packages (check below image). 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM