Friday, April 28, 2017

IntelliJ IDEA - frequently used keyboard shortcuts

Ctrl+Shift+A
Find action by name.
Shift+Shift
Search everywhere.
Alt+Enter
Show the list of available intention actions .
Ctrl+Space
Invoke code completion.
Ctrl+H
Type Hierarchy
Ctrl+P
Parameter Info
Ctrl+Q
Quick Documentation
Ctrl+F
Ctrl+R
Find/replace text string in the current file.
Ctrl+Shift+F
Ctrl+Shift+R
Find/replace text in the project or in the specified directory.
Ctrl+Alt+L
Reformat Code
Ctrl+Alt+O
Optimize Imports
Ctrl+Alt+I
Auto-Indent Lines
Shift+F6 
Refactor - Rename...
Ctrl+F6 
Refactor - Change Signature...
Ctrl+Alt+V
Refactor - Extract Variable...
Ctrl+Alt+C 
Refactor - Extract Constant...
Ctrl+Alt+F 
Refactor - Extract Field...
Ctrl+Alt+P 
Refactor - Extract Parameter...
Ctrl+Alt+M 
Refactor - Extract Method...
Ctrl+Alt+N 
Refactor - Inline...
Ctrl+D
Edit - Duplicate Line or Selection
Ctrl+Y
Edit - Delete Line
Ctrl+Shift+J
Edit - Join Lines
Tab
Shift+Tab
Edit - Indent/Unindent  Selection
Ctrl+/
Code Folding - Comment/Uncomment with Line Comment
Ctrl+Shift+/
Code Folding - Comment/Uncomment with Block Comment
Ctrl+W
Ctrl+Shift+W
Selection - Extend/Shrink  Selection
Alt+Shift+Insert OR Mouse Middle Click
Selection - Column Selection Mode (multi line editing)
Alt+Insert
Insert Live Template (see more here)