Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently got into Netbeans. I used to code in Visual studio, so I'm trying to figure out what all the shortcuts are that I used to use in Visual Studio. CTRL-SHIFT-S, for one, is the same. But I don't (and can't find online) the shortcut keys to minimise all FUNCTION in the code.

E.g:

function bla() {
  print 'hello';
  print 'world';
}

will become:

function bla() {..}

(i.e. minimised)

Anyone know how to do that?

share|improve this question

migrated from stackoverflow.com Oct 3 '11 at 4:15

This question came from our site for professional and enthusiast programmers.

    
I hope I'm allowed to ask this in the comment, but why? I code in PHP using Netbeans? Isn't this like a gray area? –  coderama Oct 1 '11 at 11:26
add comment

2 Answers

up vote 3 down vote accepted

The default is CTRL+SHIFT+-. But you can adjust this in Tools -> Options -> Keymap.

share|improve this answer
add comment

Collapse (hide) all code blocks Ctrl + Shift + NumPad Minus Cmd + Shift + Minus Expand a Collapsed Block (expand-fold) Ctrl + Plus Cmd + Plus Expand a Collapsed Block (expand-fold) Ctrl + NumPad Plus
Expand a Collapsed Block (expand-fold) Ctrl + Equals Cmd + Equals Expand all code blocks (expand-all-folds) Ctrl + Shift + NumPad Plus Expand all code blocks (expand-all-folds) Ctrl + Shift + Plus Cmd + Shift + Plus Expand all code blocks (expand-all-folds) Ctrl + Shift + Equals Cmd + Shift + Equals

-> http://wiki.netbeans.org/KeymapProfileFor60

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.