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
Action | Windows | macOS |
---|
Open Project | Ctrl + Shift + A | Cmd + Shift + A |
Open File | Ctrl + Shift + N | Cmd + Shift + O |
Open Recent Files | Ctrl + E | Cmd + E |
Save All | Ctrl + S | Cmd + S |
Undo | Ctrl + Z | Cmd + Z |
Redo | Ctrl + Shift + Z | Cmd + Shift + Z |
Find | Ctrl + F | Cmd + F |
Find in Path | Ctrl + Shift + F | Cmd + Shift + F |
Replace | Ctrl + R | Cmd + R |
Go to Declaration | Ctrl + B | Cmd + B |
Navigate Back | Ctrl + Alt + Left Arrow | Cmd + Option + Left Arrow |
Navigate Forward | Ctrl + Alt + Right Arrow | Cmd + Option + Right Arrow |
Show Intention Actions | Alt + Enter | Option + Enter |
Generate Code | Alt + Insert | Cmd + N |
Editing Shortcuts
Action | Windows | macOS |
---|
Copy Line | Ctrl + C (with no selection) | Cmd + C (with no selection) |
Delete Line | Ctrl + Y | Cmd + Delete |
Duplicate Line | Ctrl + D | Cmd + D |
Move Line Up/Down | Alt + Shift + Up/Down Arrow | Option + Shift + Up/Down Arrow |
Comment/Uncomment Line | Ctrl + / | Cmd + / |
Reformat Code | Ctrl + Alt + L | Cmd + Option + L |
Refactoring Shortcuts
Action | Windows | macOS |
---|
Rename | Shift + F6 | Shift + Fn + F6 |
Extract Method | Ctrl + Alt + M | Cmd + Option + M |
Change Signature | Ctrl + F6 | Cmd + Fn + F6 |
Inline Variable | Ctrl + Alt + N | Cmd + Option + N |
Running and Debugging
Action | Windows | macOS |
---|
Run | Shift + F10 | Control + R |
Debug | Shift + F9 | Control + D |
Step Over | F8 | F8 |
Step Into | F7 | F7 |
Resume Program | F9 | Cmd + Option + R |
Tool Window Shortcuts
Action | Windows | macOS |
---|
Project Tool Window | Alt + 1 | Cmd + 1 |
Run Tool Window | Alt + 4 | Cmd + 4 |
Debug Tool Window | Alt + 5 | Cmd + 5 |
Terminal Tool Window | Alt + F12 | Cmd + Option + T |
Customizing Shortcuts
IntelliJ IDEA allows users to customize shortcuts according to their preferences:
- Navigate to Settings: Open the settings/preferences dialog (
Ctrl + Alt + S
on Windows or Cmd + ,
on macOS). - Go to Keymap: Select the "Keymap" option.
- 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
Post a Comment