Skip to content

Instantly share code, notes, and snippets.

@arttuladhar
Last active September 3, 2015 12:27
Show Gist options
  • Save arttuladhar/28ae4a9392d3d106c71e to your computer and use it in GitHub Desktop.
Save arttuladhar/28ae4a9392d3d106c71e to your computer and use it in GitHub Desktop.
Mac Shortcut Windows Shortcut Description
⌘ + ⇧ + R Ctrl + Shift + R Open / Search for Resources
⌘ + ⇧ + T Ctrl + Shift + T Open / Search for types (Useful in finding classes)
⌘ + O Ctrl + O Shows Quick Outline of the Java Class
⌘ + T CTRL-T Show type hierarchy
ALT – ↑ or ↓ ALT – ↑ or ↓ Move line/block
⌃ + Space Ctrl + Space Content assist and Code completion
⌘ + ⇧ + F Ctrl + Shift + F Format source code
⌘ + L Ctrl + L Go to Line Number
⌘ + D Ctrl + D Deletes current line in the editor
⌘ + E Ctrl + E To select an editor from the currently open editors
⌘ + ⇧ + P Ctrl + Shift + P Move cursor to the matching bracket
⌘ + M Ctrl + M Maximize Java editor
⌘ + K Ctrl + K Find next for search text in the opened editor
⌘ + ⇧ + G Ctrl + Shift + G Search for references in the workspace
⌘ + 1 Ctrl + 1 Quickfix for errors and warnings, depends on the cursor position
⌘ + S Ctrl + S Save current editor
⌘ + Q Ctrl + Q Moves cursor to the last edited position
⌘ + ⇧ + O Ctrl + Shift + O Organize imports in the current java file
⌘ + fn + F8 Ctrl + F8 Shortcut for switching perspectives
Fn + F3 F3 Move cursor to the declaration of the variable
Fn + F4 F4 Show type hierarchy of the variable
Fn + ⇧ + F2 Shift + F2 Shows the javadoc of the method, class
⌘ + Option + R Alt + Shift + R Rename of package, class etc
⌘ + Option + T Alt + Shift + T Opens the quick refactoring menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment