rabin
rabin

Reputation: 471

Expanding collapsed code in Eclipse IDE

Instead of going through each (+) sign at the left and clicking them to expand the collapsed code snippets, is there a shortcut or menu item (I couldn't find it, VS has that) to expand all the collapsed code/comments at once? Thanks.

Upvotes: 16

Views: 9844

Answers (3)

user153498
user153498

Reputation:

Try with Ctrl+* on the number-pad.

Upvotes: 15

Gene Bo
Gene Bo

Reputation: 12063

For Mac OS, I was using a PHP plugin. It wasn't enough to change the shortcut for Collapse on Edit Text.

In Eclipse I did these steps:

  1. Ctrl-Shift-L ~ open the short cut list
  2. Ctrl-Shift-L ~ hit it again to go to the shortcut preferences page
  3. Search for "Collapse" shortcut
  4. For the option to "Edit Text", I had to change it to Edit PHP
  5. Then I set the shortcut to CMD-SHIFT-UP_ARROW

And that worked. I'm guessing it would be the same for Edit Java vs. Edit Text

Upvotes: 1

kettlepot
kettlepot

Reputation: 11011

You can try ctrl-0 or Source>Uncollapse code (All)

Upvotes: 0

Related Questions