Uploaded by ajay L

IntelliJ IDEA Keyboard Shortcuts: macOS Keymap

advertisement
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
IntelliJ IDEA 2023.1
IDE configuration / Keyboard shortcuts / Predefined macOS keymap
Keyboard Shortcuts: macOS
Keymap
Last modified: 11 January 2023
You can find all shortcuts and modify them in Settings | Keymap.
IntelliJ IDEA's top keyboard
shortcuts
Search Everywhere
Double ⇧
Find Action...
⌘⇧A
Show Project window
⌘1
Rebuild
⌘ ⇧ F9
Show Intention Actions
⌥⏎
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 1 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Recent Files
⌘E
Find Usages
⌥ F7
Select In...
⌥ F1
Settings...
⌘ Comma
Generate...
⌘N
Run Anything
Double ^
Debug...
^⌥D
View Breakpoints...
⌘ ⇧ F8
Attach to Process...
⌥ ⇧ F5
VCS Operations Popup...
^V
Refactor This...
^T
Reformat Code
⌘⌥L
Build projects
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 2 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Build Project
⌘ F9
Rebuild
⌘ ⇧ F9
Basic editing
Cut
⌘X
Copy
⌘C
Paste
⌘V
Paste as Plain Text
⌘⌥⇧V
Paste from History...
⌘⇧V
Copy Paths
⌘⇧C
Copy Reference
⌘⌥⇧C
Save All
⌘S
Undo
⌘Z
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 3 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Redo
⌘⇧Z
Indent Selection
⇥
Unindent Line or Selection
⇧⇥
Auto-Indent Lines
^⌥I
Start New Line
⇧⏎
Start New Line Before Current
⌘⌥⏎
Delete Line
⌘⌫
Join Lines
^⇧J
Duplicate Line or Selection
⌘D
Toggle Case
⌘⇧U
Scratch File
⌘⇧N
Open Source in New Window
⇧ F4
Caret navigation
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 4 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Move Caret to Previous Word
⌥←
Move Caret to Next Word
⌥→
Move Caret to Line Start
Home
Move Caret to Line End
End
Move Caret to Matching Brace
^M
Move Caret to Code Block Start
⌘⌥[
Move Caret to Code Block End
⌘⌥]
Next Method
^⇧↓
Previous Method
^ ⇧ Up
Move Caret to Page Top
⌘ Page Up
Move Caret to Page Bottom
⌘ Page ↓
Page Up
Page Up
Page Down
Page ↓
Move Caret to Text Start
⌘ Home
Move Caret to Text End
⌘ End
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 5 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Select text
Select All
⌘A
Left with Selection
⇧←
Right with Selection
⇧→
Move Caret to Previous Word with Selection
⌥⇧←
Move Caret to Next Word with Selection
⌥⇧→
Move Caret to Line Start with Selection
⇧ Home
Move Caret to Line End with Selection
⇧ End
Up with Selection
⇧ Up
Down with Selection
⇧↓
Move Caret to Code Block Start with Selection
⌘⌥⇧[
Move Caret to Code Block End with Selection
⌘⌥⇧]
Move Caret to Page Top with Selection
⌘ ⇧ Page Up
Move Caret to Page Bottom with Selection
⌘ ⇧ Page ↓
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 6 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Page Up with Selection
⇧ Page Up
Page Down with Selection
⇧ Page ↓
Move Caret to Text Start with Selection
⌘ ⇧ Home
Move Caret to Text End with Selection
⌘ ⇧ End
Extend Selection
⌥ Up
Shrink Selection
⌥↓
Code folding
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 7 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Expand
⌘ NumPad
Collapse
⌘ NumPad -
Expand Recursively
⌘ ⌥ NumPad
Collapse Recursively
⌘ ⌥ NumPad -
Expand All
⌘ ⇧ NumPad
Collapse All
⌘ ⇧ NumPad -
Fold Selection
⌘.
Multiple carets and selection
ranges
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 8 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Add/Remove Caret
⌥ ⇧ Click
Toggle Column Selection Mode
⌘⇧8
Clone Caret Above
Double ⌥ + Up
Clone Caret Below
Double ⌥ +
Down
Add Caret to Each Line in Selection
⌥⇧G
Add Selection for Next Occurrence
^G
Select All Occurrences
⌘^G
Deselect Last Occurrence
^⇧G
Create Rectangular Selection
⌥ ⇧ Middle-Click
Drag to Create Rectangular Selection
⌥ Click
Drag to Create Multiple Rectangular Selections
⌘ ⌥ ⇧ Click
Coding assistance
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 9 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Show Intention Actions
⌥⏎
Basic Completion
^ Space
Type-Matching Completion
^ ⇧ Space
Second Basic Completion
^ ⌥ Space
Complete Current Statement
⌘⇧⏎
Reformat Code
⌘⌥L
Parameter Info
⌘P
Quick Documentation
F1
Move Statement Up
⌘ ⇧ Up
Move Statement Down
⌘⇧↓
Move Element Left
⌘⌥⇧←
Move Statement Right
⌘⌥⇧→
Move Line Up
⌥ ⇧ Up
Move Line Down
⌥⇧↓
Comment with Line Comment
⌘/
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 10 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Comment with Block Comment
⌘⌥/
Surround With...
⌘⌥T
Generate...
⌘N
Context navigation
Next Method
^⇧↓
Previous Method
^ ⇧ Up
Go to Line/Column...
⌘L
Switcher
^⇥
Select In...
⌥ F1
Recent Files
⌘E
Last Edit Location
⌘⇧⌫
Back
⌘[
Forward
⌘]
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 11 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Select Next Tab
⌘⇧]
Select Previous Tab
⌘⇧[
Toggle Anonymous Bookmark
F3
Toggle Bookmark with Digit
^⇧+[digit]
Toggle Bookmark with Mnemonic
⌥ F3
Show All Bookmarks
⌘ F3
Go to Bookmark with Digit
^+[digit]
Show Mnemonic Bookmarks
⌘ ⌥ F3
Go to Next Bookmark
N/A
Go to Previous Bookmark
N/A
Show Bookmarks window
⌘2
Show Structure window
⌘7
Show Find window
⌘3
Next Occurrence
⌘⌥↓
Previous Occurrence
⌘ ⌥ Up
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 12 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Find everything
Search Everywhere
Double ⇧
Find...
⌘F
Find Next / Move to Next Occurrence
⌘G
Find Previous / Move to Previous Occurrence
⌘⇧G
Replace...
⌘R
Find in Files...
⌘⇧F
Replace in Files...
⌘⇧R
Next Occurrence of the Word at Caret
N/A
Go to File...
⌘⇧O
File Structure
⌘ F12
Go to Symbol...
⌘⌥O
Find Action...
⌘⇧A
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 13 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Navigate from symbols
Find Usages
⌥ F7
Go to Declaration or Usages
⌘B
Go to Type Declaration
⌘⇧B
Show Usages
⌘ ⌥ F7
Go to Super Method
⌘U
Go to Implementation(s)
⌘⌥B
Go to Test
⌘⇧T
Highlight Usages in File
⌘ ⇧ F7
Code analysis
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 14 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Show Intention Actions
⌥⏎
Error Description
⌘ F1
Next Highlighted Error
F2
Previous Highlighted Error
⇧ F2
Run Inspection by Name...
⌘⌥⇧I
Show Problems window
⌘6
Run and debug
Run Anything
Double ^
Run context configuration
^R
Run...
^⌥R
Debug context configuration
^D
Debug...
^⌥D
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 15 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Attach to Process...
⌥ ⇧ F5
Stop
⌘ F2
Resume Program
⌘⌥R
Stop Background Processes...
⌘ ⇧ F2
Step Over
F8
Force Step Over
⌥ ⇧ F8
Step Into
F7
Smart Step Into
⇧ F7
Force Step Into
⌥ ⇧ F7
Step Out
⇧ F8
Run To Cursor
⌥ F9
Force Run To Cursor
⌘ ⌥ F9
Show Execution Point
⌥ F10
Evaluate Expression...
⌥ F8
Quick Evaluate Expression
⌘ ⌥ F8
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 16 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Toggle Line Breakpoint
⌘ F8
Toggle Temporary Line Breakpoint
⌘ ⌥ ⇧ F8
View Breakpoints...
⌘ ⇧ F8
Edit Breakpoint
⌘ ⇧ F8
Show Run window
⌘4
Show Debug window
⌘5
Show Services window
⌘8
Refactorings
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 17 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Refactor This...
^T
Rename...
⇧ F6
Change Signature...
⌘ F6
Inline...
⌘⌥N
Move...
F6
Extract Method...
⌘⌥M
Introduce Field...
⌘⌥F
Introduce Parameter...
⌘⌥P
Introduce Variable...
⌘⌥V
Safe Delete...
⌘⌦
Global VCS actions
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 18 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
VCS Operations Popup...
^V
Commit...
⌘K
Update Project
⌘T
Rollback
⌘⌥Z
Push...
⌘⇧K
Next Change
^⌥⇧↓
Previous Change
^ ⌥ ⇧ Up
Show Version Control window
⌘9
Show Commit window
⌘0
Differences viewer
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 19 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Show Diff
⌘D
Compare Files
⌘D
Next Difference
F7
Previous Difference
⇧ F7
Accept Left Side
⌘^→
Accept Right Side
⌘^←
Select Opposite Diff Pane
^⇧⇥
Show Diff Settings Popup...
⌘⇧D
Tool windows
Hide Active Tool Window
⇧⎋
Hide All Tool Windows
⌘ ⇧ F12
Jump to Last Tool Window
F12
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 20 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
06/05/23, 7:14 PM
Stretch to Left
^⌥←
Stretch to Right
^⌥→
Stretch to Top
^ ⌥ Up
Stretch to Bottom
^⌥↓
Show Project window
⌘1
Show Bookmarks window
⌘2
Show Find window
⌘3
Show Run window
⌘4
Show Debug window
⌘5
Show Problems window
⌘6
Show Structure window
⌘7
Show Services window
⌘8
Show Version Control window
⌘9
Show Commit window
⌘0
Show Terminal window
⌥ F12
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
Page 21 of 22
Keyboard Shortcuts: macOS Keymap | IntelliJ IDEA Documentation
https://www.jetbrains.com/help/idea/reference-keymap-mac-default.html
06/05/23, 7:14 PM
Page 22 of 22
Download