Is there a keyboard shortcut to fold all of the code at once in Android Studio?

83 Views Asked by At

i have big code in every file in my project and i need a shortcut to reduce the whole code in specific file with one click instead of doing it manual

i have taken screenshot to explain it

enter image description here

in my case i am clicking manual to every single line and every time I am restarting android studio it expanded again I don't know why.

1

There are 1 best solutions below

2
Stephen Taylor On BEST ANSWER

To fold:

Mac: Shift + ⌘ command + -

Windows/Linux: Shift + CTRL + -

To unfold:

Mac: Shift + ⌘ command + +

Windows/Linux: Shift + CTRL + +