Xi 张熹
Xi 张熹

Reputation: 11071

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

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

Answers (3)

Nirmal Silwal
Nirmal Silwal

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.keys setting to collapse all code in eclipse in MacBook

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. enter image description here

Upvotes: 0

user4290789
user4290789

Reputation: 19

Keyboard ShortCut from Eclipse:

⇧⌘Numpad_Divide

Upvotes: 1

Maarten Kesselaers
Maarten Kesselaers

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

Related Questions