IntelliJ IDEA most useful keyboard shortcuts

IntelliJ IDEA most useful keyboard shortcuts

IntelliJ IDEA is the leading IDE for Java and Kotlin development. The program supports shortcut keys for most commands, areas for editing, navigation, refactoring, code debugging and other tasks.

Using keyboard keys allows you to be more productive without taking your hands off the buttons.

List of the most useful keyboard shortcuts

Double ShiftSearch Everywhere. Quickly find any file, action, symbol, tool window, or setting in IntelliJ IDEA, in your project, and in the current Git repository.

CtrlShiftAFind Action. Find a command and execute it, open a tool window, or search for a setting.

AltEnterShow Context Actions. Quick-fixes for highlighted errors and warnings, intention actions for improving and optimizing your code.

F2 — Navigate between code issues.

ShiftF2 — Jump to the next or previous highlighted error.

CtrlEView recent files. Select a recently opened file from the list.

CtrlShiftEnterComplete Current Statement. Insert any necessary trailing symbols and place the caret where you can start typing the next statement.

CtrlAltLReformat Code. Reformat the whole file or the selected fragment according to the current code style settings.

CtrlAltShiftTInvoke refactoring. Refactor the element under the caret, for example, safe delete, copy, move, rename, and so on.

CtrlW — Extend or shrink selection

CtrlShiftW — Increase or decrease the scope of selection according to specific code constructs.

Ctrl/ — Add/remove line or block comment.

CtrlShift/ — Comment out a line or block of code.

CtrlBGo To Declaration. Navigate to the initial declaration of the instantiated class, called method, or field.

AltF7Find Usages. Show all places where a code element is used across your project.

Alt1 — Focus the Project tool window.

Esc — Focus the editor.

All keyboard shortcuts in IntelliJ IDEA are customizable, so you can customize the keys of any command, even those that don’t have a default key.

A list of default keyboard shortcuts is available in the sections Predefined macOS keymap and Predefined Windows keymap.

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
donkroa
Guest
donkroa
1 year ago

thank you, the keyboard shortcuts help me a lot