Skip to content

Instantly share code, notes, and snippets.

@travmik
Last active December 11, 2015 02:09
Show Gist options
  • Save travmik/4528504 to your computer and use it in GitHub Desktop.
Save travmik/4528504 to your computer and use it in GitHub Desktop.
Idea vs Eclipse shortcuts
Eclipse IntelliJ IDEA Description
F4 ctrl + h show the type hierarchy
crl + alt + g ctrl + alt + F7 find usages
ctrl + shift + u ctrl + F7 finds the usages in the same file
alt + shift + r shift + F6 rename
ctrl + shift + r cmd+O, cmd + shift + O find file / open resource
ctrl + shift + x, j ctrl + shift + F10 run (java program)
ctrl + shift + o ctrl + alt + o organize imports
ctrl + o cmd + F12 show current file structure / outline
ctrl + shift + m ctrl + alt + V create local variable refactoring
syso ctrl + space sout ctrj + j System.out.println(“”)
alt + up/down ctrl + shift + up/down move lines
ctrl + d cmd + del delete current line
??? alt + h show subversion history
ctrl + h ctrl + shift + f search (find in path)
“semi” set in window-> prefs ctrl + shift + enter if I want to add the semi-colon at the end of a statement
ctrl + 1 or ctrl + shift + l ctrl + alt + v introduce local variable
alt + shift + s alt + insert generate getters / setters
ctrl + shift + f ctrl + alt + l format code
ctrl + y ctrl + shift + z redo
ctrl + shift + c ctrl + / comment out lines (my own IDEA shortcut definition for + shift + y)
ctrl + alt + h ctrl + alt + h (same!) show call hierarchy
none ? ctrl + alt + f7 to jump to one of the callers of a method
ctrl + shift + i alt + f8 evaluate expression (in debugger)
F3 ctrl + b go to declaration (e.g. go to method)
Ctrl + T cmd + Alt + B show implementations
cmd + F3 Find word under carret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment