Search code examples
eclipseidekeyboard-shortcuts

Is there a keyboard shortcut in Eclipse to fold the current method/block?


question says it all. I have folding turned on in Eclipse (v3.4), and rather than having to click the little +/- in the page gutter, I'm wondering if there's a keyboard shortcut to just: fold the current method.

A quick look at the menus and what-not in eclipse doesn't show a menu item for it, so maybe you just can't do it.

Anyone?


Solution

  • By default they're bound to Ctrl + Numpad_Minus and Ctrl + Numpad_Plus, but you can rebind them.