Reputation: 11071
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?
Upvotes: 8
Views: 6205
Reputation: 87
Open settings (you can use command ⌘,) then search Keys from search bar in setting page.
Again in search bar inside all keys shortcut settings, you'll see type filter text, now type there COLLAPSE ALL. Here you can add your shortcut as per your convenience. In the Binding section, do change your hot key.
Here is my setting for your reference.
Do note that in corresponding category I kept editing java source and editing text.
You can do similar for EXPANDING ALL methods in your Java code which you just collapsed. Attaching my setting for reference.
Upvotes: 0
Reputation: 1251
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.
Upvotes: 10