16

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.

3 Answers 3

15

Try with Ctrl+* on the number-pad.

Sign up to request clarification or add additional context in comments.

6 Comments

You can also right click on the line numbers > Folding > Expand All
I really miss that shortcut on my Mac (MacBook)... Does anyone know an alternative shortcut for the Mac? (Especially for the Navigator/Package Explorer, where it doesn't even work with an external keyboard!)
@chris_l I can't test this, but most ctrl commands are mapped to the apple key. Quite possibly that's the case here too.
Thanks guys. I knew there has to be something, just couldn't find it.
Ctrl+Shift+Divide on the numpad to collapse them all again =)
|
1

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 shortcut 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 command-SHIFT-UP_ARROW.

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

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.