Search code examples
android-studiokeyboard-shortcutscode-folding

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


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.


Solution

  • To fold:

    Mac: Shift + ⌘ command + -

    Windows/Linux: Shift + CTRL + -

    To unfold:

    Mac: Shift + ⌘ command + +

    Windows/Linux: Shift + CTRL + +