1. Navigation
Search by File Name (⌘⇧N)
Search by Class Name (⌘N)
Search by Symbol (⌘⌥⇧N)
2. Access Recent File
Recent Files action (⌘E)
3. Structure View(⌘F12).
4. Declaration of a method/function/class (⌘B)
Quick Definition Action ( ⌘⇧I ) will show the definition in a pop-up and not in a new tab
5. Check the actual type of a variable.
Type Info action (⌃⇧P)
6. Find Usages
Find Usages ⌥F7
Find Usages in File ⌘F7
Highlight Usages in File ⌘⇧F7
Find Super Method/Class ⌘U
Find Implementation(s) ⌘⌥B
7. Select a word/line/block
7. Select a word/line/block
Extend Selection (⌘W) action and Shrink Selection (⌘⇧W) action multiple times.
8. Rename Refactoring (⇧F6)
Reference:
Eclipse | IntelliJ IDEA | Description |
F4 | ctrl+h | show the type hierarchy |
ctrl+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 | ctrl+shift+N | find file / open resource |
ctrl+shift+x, j | ctrl+shift+F10 | run (java program) |
ctrl+shift+o | ctrl+alt+o | organize imports |
ctrl+o | ctrl+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 | ctrl + y | delete current line |
??? | alt + h | show subversion history |
ctrl + h | ctrl + shift + f | search (find in path) |
“semi” set in window-> preferences | 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 comment/uncomment on german keyboard layout on laptop: ctrl + 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 + l | ctrl + g | go to line |
No comments:
Post a Comment