Saturday, February 21, 2009

IntelliJ shortcuts

Here are some shortcut keys that I found useful in IntelliJ

NAVIGATION

Ctrl-E Show recent edited file
Ctrl-Alt-Left Go back (through recent editing locations)
Ctrl-Alt-Right Go forward (through recent editing locations)
Alt-Left Go to previous editor window in current tab set
Alt-Right Go to next editor window in current tab set
Ctrl-] Go forward to matching bracket
Ctrl-[ Go backward to matching bracket
Ctrl-G Go to line number
Ctrl-B Go to declaration of object at cursor
Ctrl-H Show class hierarchy of current class
Ctrl-Shift-H Show class hierarchy of current method
F2 Go to next error


FINDING STUFFS
Ctrl-N
Ctrl-Shift-N
Ctrl-Alt-Shift-N
Ctrl-Shift-F
Ctrl-Shift-F7 Highlight all occurrences of identifier in file
Alt-F7 Find all references in workspace (showing them in Search pane)
Alt-F3 incremental search
Ctrl-F Search within a file
F3 Search Next within a file
Shift-F3 Search previous within a file
Ctrl-Shift-n Toggle bookmark n
Ctrl-n Go to bookmark n
F11 Toggle bookmark
Shift-F11 Show bookmarks

EDITING

Ctrl-Space Code completion
Ctrl-Alt-Space Class name completion (adding import if missing)
Ctrl-Shift-Enter Finish current line
Ctrl-Shift-J Smart line join
Ctrl-F4 Close editor window
Ctrl-Q show quick javadoc
Ctrl-P show parameter to method
Alt-Q Show current context (method, class, etc)
Alt-insert insert constructor/getter setter/etc
Ctrl-Alt-T surround by (highlight portion of code first)
Ctrl-Shift-V insert from clipboard (keeps track of last few clipboard item)
Ctrl-Shift-F12 Maximize editor
Ctrl-O override methods
Ctrl-I implement method
Ctrl-Shift-U toggle case for selected block
Ctrl- Numpad +/- expand/collapse code block
Ctrl-D duplicate current line
Ctrl-X cut current line
Ctrl-Alt-I auto indent
Ctrl-Alt-L reformat code
Ctrl-Alt-O optimise imports
Ctrl-W select successively increasing code blocks
Ctrl-Shift-W decrease current selection

REFACTOR
Ctrl-Alt-M extract method
Ctrl-Alt-V introduce variable
Ctrl-Alt-P introduce parameter
Ctrl-Alt-F introduce field
Ctrl-Alt-C introduce constant
Shift-F6 Rename
F6 Move
Ctrl-F6 change signature


LIVE TEMPLATES
sout System.out.println
psvm public static void main
iter Java 5 style iteration
itli Iterate through list
itar Iterate through array
itit Iterate through iterator

VCS
Ctrl-T Update project from VCS
Ctrl-K commit project to VCS

3 Comments:

At 10:49 PM , Blogger Bustanil Arifin said...

Nice list.. Thanks

 
At 8:32 PM , Anonymous Anonymous said...

Helpful, thanks.

 
At 7:50 PM , Blogger esarijal said...

Very helpful, Thanks a lot

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home