This is an IDE question
I am always working with collapsed methods, because I want to be able to see my methods all together. This is a little time consuming because I have to use the mouse to scroll up to the declaration of the method and click on the - (minus) icon. And then respectively go to the method I want to work on and click on the + (plus) icon.
Is there a way through a keyboard shortcut to do the collapse (and respectively the expand)?
I copied a piece from http://wiki.netbeans.org/KeymapProfileFor60.
The first option is for Win/Lin and the second for Mac.
Command | Windows | Mac |
---|---|---|
Collapse (hide) a block | Ctrl + - | ⌘ + - |
Expand a Collapsed Block (expand-fold) | Ctrl + + | ⌘ + + |
Collapse (hide) all code blocks | Ctrl + Shift + - | ⌘ + Shift + - |
Expand all code blocks (expand-all-folds) | Ctrl + Shift + + | ⌘ + Shift + + |
1 On Windows you can also use the numpad + and -
2 It says +, achkatually it's the = key