IntelliJ IDEA
IntelliJ IDEA, developed by JetBrains and released in 2001, is one of the most loved Integrated Development Environments (IDEs) for Java and beyond. Itβs known for its smart code completion, deep debugging, and seamless refactoring tools that make coding efficient. Fun fact: IntelliJ IDEA was the first IDE to introduce intelligent code suggestions, setting the standard for modern coding tools. Loved by millions of developers, itβs like having a coding assistant by your side!
Shortcuts
Remember these shortcuts
Window | Mac | Description |
---|---|---|
CtrlShiftSpace | ββ§Space | Smart code completion |
ShiftShift | β§β§ | Search everywhere |
AltEnter | β₯β | Show intention actions and quick-fixes |
AltIns | βN | Generate code |
CtrlP | βP | Parameter info |
CtrlW | β₯β | Extend selection |
CtrlShiftW | β₯β | Shrink selection |
CtrlE | βE | Recent files popup |
ShiftF6 | β§F6 | Rename |
General
Window | Mac | Description |
---|---|---|
Alt | β | Open corresponding tool window |
CtrlS | βS | Save all |
CtrlAltY | ββ₯Y | Synchronize |
CtrlShiftF12 | ββ§F12 | Toggle maximizing editor |
AltShiftI | β₯β§I | Inspect current file with current profile |
Ctrl` | β` | Quick switch current scheme |
CtrlAltS | β, | Open Settings dialog |
CtrlAltShiftS | β; | Open Project Structure dialog |
CtrlShiftA | ββ§A | Find Action |
Debugging
Window | Mac | Description |
---|---|---|
F8 | F8 | Step over |
F7 | F7 | Step into |
ShiftF7 | β§F7 | Smart step into |
ShiftF8 | β§F8 | Smart step out |
AltF9 | β₯F9 | Run to cursor |
AltF8 | β₯F8 | Evaluate expression |
F9 | ββ₯R | Resume program |
CtrlF8 | βF8 | Toggle breakpoint |
CtrlShiftF8 | ββ§F8 | View breakpoints |
Search / Replace
Window | Mac | Description |
---|---|---|
ShiftShift | β§β§ | Search everywhere |
CtrlF | βF | Find |
F3 | βG | Find next |
ShiftF3 | ββ§G | Find previous |
CtrlR | βR | Replace |
CtrlShiftF | ββ§F | Find in path |
CtrlShiftR | ββ§R | Replace in path |
AltJ | βG | Select next occurrence |
CtrlAltShiftJ | ββG | Select all occurrences |
AltShiftJ | βG | Unselect occurrence |
Editing
Window | Mac | Description |
---|---|---|
CtrlSpace | βSpace | Basic code completion |
CtrlShiftSpace | ββ§Space | Smart code completion |
CtrlShiftEnter | ββ§β | Complete statement |
CtrlP | βP | Parameter info |
CtrlQ | βJ | Quick documentation lookup |
ShiftF1 | β§F1 | External Doc |
CtrlF1 | βF1 | Show descriptions of error at caret |
AltIns | ββ | Generate code |
CtrlO | βO | Override methods |
CtrlI | βI | Implement methods |
CtrlAltT | ββ₯T | Surroundβwith |
Ctrl/ | β/ | Commentβ/βuncomment with line comment |
CtrlShift/ | ββ₯/ | Commentβ/βuncomment with block comment |
CtrlW | β₯β | Extend selection |
CtrlShiftW | β₯β | Shrink selection |
AltQ | ββ§Q | Context info |
AltEnter | β₯β | Show intention actions and quick-fixes |
CtrlAltL | ββ₯β | Reformat code |
CtrlAltO | ββ₯O | Optimize imports |
CtrlAltI | ββ₯I | Auto-indent line(s) |
Tab | β₯ | Indentβselected lines |
ShiftTab | β§β₯ | Unindent selected lines |
CtrlX | βX | Cut current line to clipboard |
CtrlC | βC | Copy current line to clipboard |
CtrlV | βV | Paste from clipboard |
CtrlShiftV | ββ§V | Paste from recent buffers |
CtrlD | βD | Duplicate current line |
CtrlY | ββ« | Delete line at caret |
CtrlShiftJ | ββ§J | Smart line join |
CtrlEnter | ββ | Smart line split |
ShiftEnter | β§β | Start new line |
CtrlShiftU | ββ§U | Toggle case for word at caret or selected block |
CtrlShift[ | ββ₯β§[ | Select till code block start |
CtrlShift] | ββ₯β§] | Select till code block end |
CtrlDel | β₯Del | Delete to word end |
CtrlBackspace | β₯β« | Delete to word start |
Ctrl+ | β+ | Expandβcode block |
Ctrl- | β- | Collapse code block |
CtrlShift+ | ββ§+ | Expand all |
CtrlShift- | ββ§- | Collapse all |
CtrlF4 | βW | Close active editor tab |
Refactoring
Window | Mac | Description |
---|---|---|
F5 | F5 | Copy |
F6 | F6 | Move |
AltDel | βDel | Safe Delete |
ShiftF6 | β§F6 | Rename |
CtrlAltShiftT | βT | Refactor this |
CtrlF6 | βF6 | Change Signature |
CtrlAltN | ββ₯N | Inline |
CtrlAltM | ββ₯M | Extract Method |
CtrlAltV | ββ₯V | Extract Variable |
CtrlAltF | ββ₯F | Extract Field |
CtrlAltC | ββ₯C | Extract Constant |
CtrlAltP | ββ₯P | Extract Parameter |
Navigation
Window | Mac | Description |
---|---|---|
CtrlN | βO | Go to class |
CtrlShiftN | ββ§O | Go to file |
CtrlAltShiftN | ββ₯O | Go to symbol |
Altβ | ββ | Go to nextβeditor tab |
Altβ | ββ | Go to previous editor tab |
F12 | F12 | Go back to previous tool window |
Esc | β | Go to editor (from tool window) |
ShiftEsc | β§β | Hide active or last active window |
CtrlG | βL | Go to line |
CtrlE | βE | Recent files popup |
CtrlShiftE | ββ§E | Recent locations popup |
CtrlAltβ | ββ₯β | Navigate back |
CtrlAltβ | ββ₯β | Navigate forward |
CtrlShiftBackspace | ββ§β« | Navigate to last edit location |
AltF1 | β₯F1 | Select current file or symbol in any view |
CtrlB | βB | Go to declaration |
CtrlAltB | ββ₯B | Go to implementation(s) |
CtrlShiftI | β₯Space | Open quick definition lookup |
CtrlShiftB | ββ§B | Go to type declaration |
CtrlU | βU | Go to super-method / super-class |
Altβ | ββ | Go to previousβmethod |
Altβ | ββ | Go to next method |
Ctrl[ | ββ₯[ | Move to code block start |
Ctrl] | ββ₯] | Move to code block end |
CtrlF12 | βF12 | File structure popup |
CtrlH | βH | Type hierarchy |
CtrlShiftH | ββ§H | Method hierarchy |
CtrlAltH | ββ₯H | Call hierarchy |
F2 | F2 | Nextβhighlighted error |
ShiftF2 | β§F2 | Previous highlighted error |
F4 | F4 | Edit source |
CtrlEnter | ββ | View source |
AltHome | β₯Home | Show navigation bar |
F11 | F3 | Toggle bookmark |
CtrlF11 | β₯F3 | Toggle bookmark with mnemonic |
Ctrl | β | Go to numbered bookmark |
ShiftF11 | βF3 | Show bookmarks |
Compile and run
Window | Mac | Description |
---|---|---|
CtrlF9 | βF9 | Build project |
CtrlShiftF9 | ββ§F9 | Compile selected file, package or module |
AltShiftF9 | ββ₯D | Select configuration and debug |
AltShiftF10 | ββ₯R | Select configuration and run |
ShiftF9 | βD | Debug |
ShiftF10 | βR | Run |
CtrlShiftF10 | ββ§R | Run context configuration from editor |
CtrlCtrl | ββ | Run anything |
Usage search
Window | Mac | Description |
---|---|---|
AltF7 | β₯F7 | Find usages |
CtrlF7 | βF7 | Find usages in file |
CtrlShiftF7 | ββ§F7 | Highlight usages in file |
CtrlAltF7 | ββ₯F7 | Show usages |
VCS / Local history
Window | Mac | Description |
---|---|---|
CtrlK | βK | Commit project to VCS |
CtrlT | βT | Update project from VCS |
CtrlShiftK | ββ§K | Push commits |
Alt` | βV | 'VCS' quick popup |
Live Templates
Window | Mac | Description |
---|---|---|
CtrlAltJ | ββ₯J | Surround with Live Template |
CtrlJ | βJ | Insert Live Template |