Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I "collapse all" in Eclipse on MacBook?

Tags:

macos

eclipse

I run Eclipse on a MacBook. I want to use keyboard to collapse all functions, so I pull out the cheat sheet and found that I have to press some key and the "Numpad_Substract", which is not available on MacBook's keyboard. What should I do?

like image 340
Xi 张熹 Avatar asked Feb 18 '12 09:02

Xi 张熹


People also ask

How do you collapse all in Java?

To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + .

How do I expand all in eclipse?

Expand all all in project explorer is Shift + Numpad * (multiplty), as mentioned before. Collapse all in project explorer is Ctrl + Shift + Numpad - (subtract). Alternatively, you can just jam on the right arrow to expand to the bottom of a selected tree, or jam on the left arrow to collapse back up to the top.


2 Answers

You can edit the preferences of the hot-keys. Just go to Eclipse ==> Preferences ==> Keys. There you can search for "collapse all" and change the key-mapping.

like image 96
Maarten Kesselaers Avatar answered Oct 04 '22 05:10

Maarten Kesselaers


Keyboard ShortCut from Eclipse:

⇧⌘Numpad_Divide

like image 26
user4290789 Avatar answered Oct 04 '22 05:10

user4290789