Skip to content

Instantly share code, notes, and snippets.

@veysby
Created December 9, 2014 04:42
Show Gist options
  • Save veysby/e07fbd134f5482018319 to your computer and use it in GitHub Desktop.
Save veysby/e07fbd134f5482018319 to your computer and use it in GitHub Desktop.
Hints: Eclipse | STS on Mac
Key Bingings - Eclipse / Spring Source Tool Suite
Source: http://zeroturnaround.com/rebellabs/top-java-ide-keyboard-shortcuts-for-eclipse-intellij-idea-netbeans/
Eclipse STS
SEARCH
Find Usages ⌘ + Shift + G ⌘ + Shift + G
Find / Replace in file ⌘ + F ⌘ + F
Find / Replace in projects Ctrl + H Ctrl + H
Find next ⌘ + K ⌘ + K
FILE NAVIGATION
Open resource / Navigate to file ⌘ + Shift + R ⌘ + Shift + R
Open type ⌘ + Shift + T ⌘ + Shift + T
Go to line ⌘ + L ⌘ + L
Tab / File switcher ⌘ + E ⌘ + E
WINDOWS ACTIONS
Maximize active window ⌘ + M Ctrl + M
Next view (editor) ⌘ + F6 ⌘ + F6
Quick switch editor ⌘ + E ⌘ + E
Back Alt + Left
Forward Alt + Right
Activate editor F12 ⌘ + F12
TEXT EDITING ACTIONS
Move lines Alt + Up / Down Alt + Up / Down
Delete lines ⌘ + D ⌘ + D
Copy / Duplicate lines ⌘ + Alt + Up / Down ⌘ + Alt + Up / Down
Select identifier Alt + Shift + Up
Format code ⌘ + Shift + F ⌘ + Shift + F
Correct indentation ⌘ + I ⌘ + I
Structured selection Alt + Shift + Up
CODE NAVIGATION
Find usages / References in workspace ⌘ + Shift + G ⌘ + Shift + G
Quick outline / File structure ⌘ + O ⌘ + O
Inspect code hierachy ⌘ + T ⌘ + T
Open / Navigate to declaration F3 F3
Open / Navigate to type hierarchy F4 F4
REFACTORING
Show quick refactoring menu ⌘ + Shift + T
Rename ⌘ + Alt + R ⌘ + Alt + R
Surround with ⌘ + Alt + Z ⌘ + Alt + Z
Extract local variable ⌘ + Alt + L ⌘ + Alt + L
Inline ⌘ + Alt + I ⌘ + Alt + I
Extract method ⌘ + Alt + M ⌘ + Alt + M
CODE COMPLETION
Quick fix ⌘ + 1 ⌘ + 1
Code completion Ctrl + Space Ctrl + Space
UNIVERSAL ACCESS
Shortcuts cheatsheet ⌘ + Shift + L
Quick access / search everywhere ⌘ + 3 ⌘ + 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment