IntelliJ IDEA Shortcut Commands for Windows and macOS

IntelliJ IDEA Shortcuts for Windows and macOS

IntelliJ IDEA is a popular integrated development environment (IDE) used for Java development and many other languages. Mastering shortcuts can greatly enhance productivity and streamline the coding process. Below is a comprehensive guide to some of the most useful IntelliJ IDEA shortcuts for both Windows and macOS users.

General Shortcuts

ActionWindowsmacOS
Open ProjectCtrl + Shift + ACmd + Shift + A
Open FileCtrl + Shift + NCmd + Shift + O
Open Recent FilesCtrl + ECmd + E
Save AllCtrl + SCmd + S
UndoCtrl + ZCmd + Z
RedoCtrl + Shift + ZCmd + Shift + Z
FindCtrl + FCmd + F
Find in PathCtrl + Shift + FCmd + Shift + F
ReplaceCtrl + RCmd + R
Go to DeclarationCtrl + BCmd + B
Navigate BackCtrl + Alt + Left ArrowCmd + Option + Left Arrow
Navigate ForwardCtrl + Alt + Right ArrowCmd + Option + Right Arrow
Show Intention ActionsAlt + EnterOption + Enter
Generate CodeAlt + InsertCmd + N

Editing Shortcuts

ActionWindowsmacOS
Copy LineCtrl + C (with no selection)Cmd + C (with no selection)
Delete LineCtrl + YCmd + Delete
Duplicate LineCtrl + DCmd + D
Move Line Up/DownAlt + Shift + Up/Down ArrowOption + Shift + Up/Down Arrow
Comment/Uncomment LineCtrl + /Cmd + /
Reformat CodeCtrl + Alt + LCmd + Option + L

Refactoring Shortcuts

ActionWindowsmacOS
RenameShift + F6Shift + Fn + F6
Extract MethodCtrl + Alt + MCmd + Option + M
Change SignatureCtrl + F6Cmd + Fn + F6
Inline VariableCtrl + Alt + NCmd + Option + N

Running and Debugging

ActionWindowsmacOS
RunShift + F10Control + R
DebugShift + F9Control + D
Step OverF8F8
Step IntoF7F7
Resume ProgramF9Cmd + Option + R

Tool Window Shortcuts

ActionWindowsmacOS
Project Tool WindowAlt + 1Cmd + 1
Run Tool WindowAlt + 4Cmd + 4
Debug Tool WindowAlt + 5Cmd + 5
Terminal Tool WindowAlt + F12Cmd + Option + T

Customizing Shortcuts

IntelliJ IDEA allows users to customize shortcuts according to their preferences:

  1. Navigate to Settings: Open the settings/preferences dialog (Ctrl + Alt + S on Windows or Cmd + , on macOS).
  2. Go to Keymap: Select the "Keymap" option.
  3. Search and Modify: Find the action you want to change and assign a new shortcut.

Mastering these shortcuts can significantly enhance your productivity and efficiency while working in IntelliJ IDEA. Customize them to suit your workflow and make coding more enjoyable!

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations