Android Studio Collapse definitions and methods

前端 未结 15 1639
庸人自扰
庸人自扰 2020-12-07 10:51

How can I collapse all definitions and methods within the Android Studio editor?

Visual Studio has that option on Edit-->Outlining, but I cannot find

相关标签:
15条回答
  • 2020-12-07 11:18

    Here's screenshot for quick reference:

    enter image description here

    0 讨论(0)
  • 2020-12-07 11:21

    View -> Tool Windows -> Structure

    It's the equivalent to outline in eclipse. It gives you a far better overview of the class than folding.

    0 讨论(0)
  • 2020-12-07 11:25

    Windows:
    Collapse: ctrl + shift + Numpad-
    Expand: ctrl + shift + Numpad+

    0 讨论(0)
  • 2020-12-07 11:26

    This work for me in Windows:

    minimize: CTRL + SHIFT + -

    expand: CTRL + SHFT + +

    0 讨论(0)
  • 2020-12-07 11:26

    New Android Studio come up with a lot of new functions. These are the commands you can use to fold different type of code.

    0 讨论(0)
  • 2020-12-07 11:28

    Optionally to collapse single method inside class rather than all methods @once use cmd and - on Mac Cheers

    0 讨论(0)
提交回复
热议问题