Neph
Neph

Reputation: 2001

Android Studio: Fold all methods non-recursively

In Android Studio 3.6.1. (Java 8) there are multiple options for folding (Code -> Folding):

Using the third option in a file with a lot of methods/code blocks, if I just want to work on a single method, means that I have to unfold everything inside that code block again.

I know that Eclipse and Visual Studio are able to fold all methods non-recursively (my shortcuts there are: Ctrl + Shift + Numpad / for folding and Ctrl + Shift + Numpad * for unfolding) but how do I do the same thing in Android Studio?

Upvotes: 4

Views: 367

Answers (1)

Termenoil
Termenoil

Reputation: 31

Unfortunately it appears this can't be done. The best way to deal with this that I've found is to expand the desired method recursively with ctrl alt +

Upvotes: 3

Related Questions