Kladde

Intellij IDEA Shortcuts

Tastenkombination Beschreibung
Ctrl + N Go to class; by first letter, i.e. BF for BarFactory; to line BF:40
Ctrl + Shift + N Go to class, toggle by project files; can go to folder by doing /baz_folder
Ctrl + Shift + Alt + N Any symbol; can filter by nameSpace, i.e. FBF.getFoo
Alt + 1 Project structure (folders), can use keyboard to navigate or find by word
(Double-press) Shift Search everywhere
Alt + 7 Project structure sidebar (symbol based)
Ctrl + F12 Project structure popup
Ctrl + E Recent files
Ctrl + Shift + E Recently edited files
Ctrl + Tab Quick switch
Alt + Home Jump to navigation bar; navigate with keys
Ctrl + B Go to Declaration or Usages
Ctrl + Shift + B Go to Type Declaration
F4 Jump to Source
Ctrl + Shift + I Quick definition popup
Ctrl + P Parameter info
Ctrl + Q Quickdocumentation
Ctrl + U Super definition/decleration
Ctrl + Alt + B Go to implementations
Ctrl + Alt + / Navigate file history
Ctrl + Shift + F7 Highlight usages in file; can use on return/throw
Ctrl + Shift + F12 Hide/restore all windows
Shift + F4 Open current file in new window
Ctrl + Shift + / Resize window you’re in
Ctrl + F3 Next Occurrence of the Word at Caret
F3 Find Next / Move to Next Occurrence
F3 + Shift Find Previous / Move to Previous Occurrence
Ctrl + Alt + 7 Show Usages
Alt + F7 Finde Usages
Ctrl + F7 Find Usages in File
Ctrl + Alt + Up / Down Next/Previous Occurrence
F4 Jump to Source

Code bearbeiten

Tastenkombination Beschreibung
Ctrl + . Fold section
Ctrl + W Expand section at caret, (expands via word essentially)
Ctrl + Shift + W Reduces section at caret
Ctrl + Shift + Enter Complete current statement; adds semicolon, blocks, etc
Ctrl + D Duplicate
Ctrl + Shift + V Clipboard history
Alt + Shift + (Click) / (Double Click) Ctrl / Create new cursor
Alt + J Select next occurrence
Alt + Shift + J Deselect
Alt + Ctrl + Shift + J Select all occurrences
Alt + Shift + / Move selection
Ctrl + Shift + / Move statement
Ctrl + Alt + L Reformat code based on code style use
Ctrl + Space Basic completion (text based) / 2x for static/contstants / Tab to overrite, Enter to insert
Ctrl + Shift + Space Smart completion (context based), i.e. show things you can instantiate at a given time
Alt + Enter Intention popup
Shift + Tab On type, can switch to superclass, will automatically select that after ??? times
Ctrl + . Fold Selection / Remove region
Ctrl + Shift + . Toggle Folding (not default)

Code Generieren

Tastenkombination Beschreibung
Alt + N Generators (toString, constructor, etc)
toString + Tab Generate toString
Table#something Expand html
ul>li\*10 Creates 10 list elements
F2 / Shift + F2 Go to next highlighted error
Ctrl + F1 Show error description
Ctrl + Alt + T Refactoring (surround with…)
Ctrl + Shift + Alt + T Refactor menu; specialized refactoring is more context sensitive
Ctrl + J Live templates (on expression)
Postfix completion foo.notnull expands to a wrapped if, defaults include null, notnull, throws

Code Debuggen

Tastenkombination Beschreibung
Alt + 5 Debugger View
Shift + F9 Debug
Alt + Shift + F9 Debug…
Alt + F8 Evaluate Expression…
Alt + Ctrl + F8 Quick Evaluate Expression
Ctrl + F8 Toggle Line Breakpoint
Insert Add watch
F2 Set value

Git

Tastenkombination Beschreibung
Alt + 9 Git History View
F2 Change commit massage
Alt + 0 Git Commit View
Ctrl + Alt + Z Rollback…
F7 Next Change
Shift + F7 Previous Change
Ctrl + Shift + ` Branches…
Ctrl + K Commit…
Ctrl + Shift + K Push…

Verschiedenes

Tastenkombination Beschreibung
Ctrl + Shift + S Structural search and replace; holy god this is complicated
Ctrl + Shift + A Search for shortcut
Ctrl + K Commit
Ctrl + Shift + K Push
Ctrl + ` Quick switch keymap; can create quick lists
Ctrl + - / = Collapse/expand region
Ctrl + Shift + - / = Collapse/expand whole file
Ctrl + Shift + F7 Highlight all occurrences of symbol

Referenz