Useful Eclipse Shortcuts Mac OS X

  • Cmd + Shift + O: Removes all unused imports.
  • Cmd + Shift + F: Code beautifier.
  • Cmd + Alt + DOWN: Duplicates the current line.
  • Ctrl + Shift + UP: Wherever the cursor, while keep hitting UP, the next current bigger entity is getting selected i.e. current word > current phrase > current statement > current line > current method body > current method > current class > current file.
  • Ctrl + H: Search tab.
  • Ctrl + 1: Applying all suggested fixes.
  • Cmd + T: Type hierarchy for the current cursor item. Repeat the shortcut a second time to see superclasses hierarchy.
  • Cmd + Shift + R: Resources tab that dynamically retrieves resources, mostly you’ll need it for classes, interfaces, enums and config files to bring up.
  • Cmd + Shift + T: Same as its cousine Cmd + Shift + R, but dynamically autocompletes only types (classes, interfaces) in the search tab.
  • Cmd + D: Delete current line.
  • Cmd + M: Minimize/Maximize current tab.
  • Cmd + N: New tab in the selected item in the Package Explorer.
  • Cmd + O: Quick Outline. Similar to the Outline view.
  • F3: Drilling into current cursor location.
  • Cmd + Left Mouse Click: Open Implementation option appears that polymorphically gives you all options. I.e. whenever F3 gets to to an interface method, Cmd+Left Click presents you with all the override options instead which is 99% of the cases where you want to navigate.
  • Ctrl + Alt + H: Call Hierarchy. Summarises all places where this method has been called.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s