![IntelliJ IDEA](https://camo.githubusercontent.com/fd2e8e83472645cd2b998d60168763bb7d8346ecb7f180076617eac3f7bcb6de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f496e74656c6c694a494445412d3030303030302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d696e74656c6c696a2d69646561266c6f676f436f6c6f723d7768697465)
My personal IntelliJ CheatSheet. I am collecting just the shortcuts I use the most.
All keyboard shortcuts are currently for Windows.
Disclaimer: This is based on personal experience and should not be taken as an official advice.
Intent |
Shortcut |
Move line up |
Shift-Alt-Up |
Move line down |
Shift-Alt-Down |
Delete line |
Ctrl-y |
Duplicate line |
Ctrl-d |
Reformat code |
Ctrl-Alt-l |
Optimize imports |
Ctrl-Alt-o |
Start new Line |
Shift-Enter |
Show clipboard entries |
Ctrl-Shift-V |
Generate code |
Alt-Ins |
Comment lines |
Ctrl-/ |
Intent |
Shortcut |
Show suggestions |
Ctrl-Space |
Intent |
Shortcut |
Back |
Ctrl-Alt-Left |
Forward |
Ctrl-Alt-Right |
Go to line |
Ctrl-g |
Search in file |
Ctrl-f |
Find in path |
Ctrl-Shift-f |
Search everywhere |
Double Shift |
Search and Replace in file |
Ctrl-r |
Go to declaration |
Ctrl-b or Ctrl-Click |
Find next |
F3 |
Find previous |
Shift-F3 |
Intent |
Shortcut |
Rename |
Shift-F6 |
Extract local variable |
Ctlr-Alt-v |
Extract field |
Ctrl-Alt-f |
Extract constant |
Ctrl-Alt-c |
Type these in the editor as text shortcuts.
Intent |
Shortcut |
System.out.println(); |
sout |
public static void main(String[] args){} |
psvm or main |
Intent |
Shortcut |
Open Terminal |
Alt-f12 |
Switch Tab |
Ctrl-Tab |
Intent |
Shortcut |
Step into |
F7 |
Step over |
F8 |
Resume |
F9 |