Skip to content

Gidan/IntelliJ-CheatSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

IntelliJ-CheatSheet

IntelliJ IDEA

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.

Editing ✏️

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-/

Code completion

Intent Shortcut
Show suggestions Ctrl-Space

Navigation 🔍

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

Refactoring

Intent Shortcut
Rename Shift-F6
Extract local variable Ctlr-Alt-v
Extract field Ctrl-Alt-f
Extract constant Ctrl-Alt-c

Live templates

Type these in the editor as text shortcuts.

Intent Shortcut
System.out.println(); sout
public static void main(String[] args){} psvm or main

IDE

Intent Shortcut
Open Terminal Alt-f12
Switch Tab Ctrl-Tab

Debug

Intent Shortcut
Step into F7
Step over F8
Resume F9