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?
To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + .
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.
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.
Keyboard ShortCut from Eclipse:
⇧⌘Numpad_Divide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With