Intellij idea keyboard shortcuts

IntelliJ IDEA has keyboard shortcuts for most of its commands related to lớn editing, navigation, refactoring, debugging, và other tasks. Memorizing these hotkeys can help you stay more productive by keeping your hands on the keyboard.

Bạn đang xem: Intellij idea keyboard shortcuts

If your keyboard does not have sầu an English layout, IntelliJ IDEA may not detect all of the shortcuts correctly.

ShortcutActionDouble Shift

Search Everywhere

Quickly find any tệp tin, action, symbol, tool window, or setting in IntelliJ IDEA, in your project, & in the current Git repository.


Find Action

Find a commvà và execute it, open a tool window, or tìm kiếm for a setting.


Show Context Actions

Quick-fixes for highlighted errors and warnings, intention actions for improving và optimizing your code.

F2 Shift+F2

Navigate between code issues

Jump khổng lồ the next or previous highlighted error.


View recent files

Select a recently opened tệp tin from the các mục.


Complete Current Statement

Insert any necessary trailing symbols và put the caret where you can start typing the next statement.


Reformat Code

Reformat the whole tệp tin or the selected fragment according to the current code style settings.


Invoke refactoring

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

Ctrl+W Ctrl+Shift+W

Extkết thúc or shrink selection

Increase or decrease the scope of selection according to lớn specific code constructs.

Xem thêm: Cường Độ Dòng Định Mức Là Gì ? Một Số Định Nghĩa Về Điện

Ctrl+/ Ctrl+Shift+/

Add/remove sầu line or block comment

Comment out a line or blochồng of code.


Go To Declaration

Navigate khổng lồ the initial declaration of the instantiated class, called method, or field.


Find Usages

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

Alt+1Focus the Project tool windowEscapeFocus the editor

If you are using one of the predefined keymaps for your OS, you can print the default keymaps reference thẻ and keep it on your desk to consult it if necessary. This cheat sheet is also available under Help | Keymaps Reference.

Choose the right keymap

To view the keybản đồ configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keybản đồ.

Enable function keys & kiểm tra for possible conflicts with global OS shortcuts.

Use a predefined keymap

IntelliJ IDEA automatically suggests a predefined keymaps based on your environment. Make sure that it matches the OS you are using or select the one that matches shortcuts from another IDE or editor you are used to (for example, Eclipse or NetBeans ).

When consulting this page và other pages in IntelliJ IDEA documentation, you can see keyboard shortcuts for the keymap that you use in the IDE — choose it using the selector at the top of the page.

Besides the default set of keymaps, you can add more as plugins (such as, keymaps for GNOME & KDE): open the Settings/Preferences dialog Ctrl+Alt+S, select Plugins và search for keymaps in the Marketplace.

If your keybản đồ stopped working after an update, it is likely that the keymaps is not available by default in the new version of IntelliJ IDEA. Find this keymaps as a plugin và install it on the Plugins page as described in Manage plugins.

Learn shortcuts as you work

IntelliJ IDEA provides several possibilities lớn learn shortcuts:

If an action has a keyboard shortcut associated with it, the shortcut is displayed near the name of the action. To add a shortcut for an action that you use frequently (or if you want khổng lồ change an existing shortcut), select it and press Alt+Enter.

Use advanced features

You can further improve sầu your productivity with the following useful features:

Quiông chồng Lists

If there is a group of actions that you often use, create a quick menu to lớn access them using a custom shortcut. For example, you can try using the following predefined quiông chồng lists: