Predefined macOS keymap
DataGrip's top keyboard shortcuts
Search Everywhere | Double ⇧ |
Find Action... | ⌘ ⇧ A |
⌘ 2 | |
⌥ ⏎ | |
⌘ E | |
⌥ F7 | |
⌥ F1 | |
⌘ Comma | |
⌘ N | |
Run Anything | Double ⌃ |
Debug... | ⌃ ⌥ D |
⌘ ⇧ F8 | |
Attach to Process... | ⌥ ⇧ F5 |
⌃ V | |
⌃ T | |
⌘ ⌥ L |
Basic editing
Cut | ⌘ X |
Copy | ⌘ C |
Paste | ⌘ V |
Paste as Plain Text | ⌘ ⌥ ⇧ V |
Paste from History... | ⌘ ⇧ V |
Copy Paths | ⌘ ⇧ C |
Copy Reference | ⌘ ⌥ ⇧ C |
⌘ S | |
⌘ Z | |
⌘ ⇧ Z | |
⇥ | |
⇧ ⇥ | |
⌃ ⌥ I | |
Start New Line | ⇧ ⏎ |
Start New Line Before Current | ⌘ ⌥ ⏎ |
Delete Line | ⌘ ⌫ |
Join Lines | ⌃ ⇧ J |
Duplicate Line or Selection | ⌘ D |
Toggle Case | ⌘ ⇧ U |
⌘ ⇧ N | |
Open Source in New Window | ⇧ F4 |
⌃ ⇧ . | |
⌃ ⇧ Comma |
Caret navigation
Move Caret to Previous Word | ⌥ ← |
Move Caret to Next Word | ⌥ → |
Move Caret to Line Start | ⌘ ← |
Move Caret to Line End | ⌘ → |
Move Caret to Matching Brace | ⌃ M |
Move Caret to Code Block Start | ⌘ ⌥ [ |
Move Caret to Code Block End | ⌘ ⌥ ] |
⌃ ⇧ ↓ | |
⌃ ⇧ ↑ | |
Move Caret to Page Top | ⌘ Page ↑ |
Move Caret to Page Bottom | ⌘ Page ↓ |
Page Up | Page ↑ |
Page Down | Page ↓ |
Move Caret to Text Start | ⌘ Home |
Move Caret to Text End | ⌘ End |
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 | ⌘ ⇧ ← |
Move Caret to Line End with Selection | ⌘ ⇧ → |
Up with Selection | ⇧ ↑ |
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 ↑ |
Move Caret to Page Bottom with Selection | ⌘ ⇧ Page ↓ |
Page Up with Selection | ⇧ Page ↑ |
Page Down with Selection | ⇧ Page ↓ |
Move Caret to Text Start with Selection | ⌘ ⇧ Home |
Move Caret to Text End with Selection | ⌘ ⇧ End |
Extend Selection | ⌥ ↑ |
Shrink Selection | ⌥ ↓ |
Code folding
Expand | ⌘ NumPad + |
Collapse | ⌘ NumPad - |
Expand Recursively | ⌘ ⌥ NumPad + |
Collapse Recursively | ⌘ ⌥ NumPad - |
Expand All | ⌘ ⇧ NumPad + |
Collapse All | ⌘ ⇧ NumPad - |
Fold Selection | ⌘ . |
Multiple carets and selection ranges
⌥ ⇧ Click | |
⌘ ⇧ 8 | |
Double ⌥ + Up | |
Double ⌥ + Down | |
⌥ ⇧ G | |
⌃ G | |
⌘ ⌃ G | |
⌃ ⇧ G | |
⌥ ⇧ Middle-Click | |
⌥ Click | |
⌘ ⌥ ⇧ Click |
Coding assistance
⌥ ⏎ | |
⌃ Space | |
⌃ ⇧ Space | |
⌃ ⌥ Space | |
⌘ ⇧ ⏎ | |
⌘ ⌥ L | |
⌘ P | |
F1 | |
Move Statement Up | ⌘ ⇧ ↑ |
Move Statement Down | ⌘ ⇧ ↓ |
Move Element Left | ⌘ ⌥ ⇧ ← |
Move Statement Right | ⌘ ⌥ ⇧ → |
Move Line Up | ⌥ ⇧ ↑ |
Move Line Down | ⌥ ⇧ ↓ |
Comment with Line Comment | ⌘ / |
Comment with Block Comment | ⌘ ⌥ / |
Surround With... | ⌘ ⌥ T |
⌘ N |
Context navigation
⌃ ⇧ ↓ | |
⌃ ⇧ ↑ | |
⌘ L | |
⌃ ⇥ | |
⌥ F1 | |
⌘ E | |
⌥ ⇧ C | |
⌘ ⇧ ⌫ | |
⌘ [ | |
⌘ ] | |
⌘ ⇧ ] | |
⌘ ⇧ [ | |
F3 | |
⌃ ⇧ [digit] | |
⌥ F3 | |
⌘ F3 | |
⌃ [digit] | |
⌘ ⌥ F3 | |
⌘ 7 | |
⌘ 3 | |
Next Occurrence | ⌘ ⌥ ↓ |
Previous Occurrence | ⌘ ⌥ ↑ |
Find everything
Search Everywhere | Double ⇧ |
⌘ F | |
⌘ G | |
⌘ ⇧ G | |
⌘ R | |
⌘ ⇧ F | |
⌘ ⇧ R | |
N/A | |
⌘ ⇧ O | |
⌘ F12 | |
⌘ ⌥ O | |
Find Action... | ⌘ ⇧ A |
Navigate from symbols
⌥ F7 | |
⌘ B | |
⌘ ⌥ F7 | |
⌘ ⇧ F7 |
Code analysis
Run and debug
Run Anything | Double ⌃ |
⌃ R | |
⌃ ⌥ R | |
Debug context configuration | ⌃ D |
Debug... | ⌃ ⌥ D |
Attach to Process... | ⌥ ⇧ F5 |
Stop | ⌘ F2 |
Resume Program | ⌘ ⌥ R |
Stop Background Processes... | ⌘ ⇧ F2 |
F8 | |
⌥ ⇧ F8 | |
F7 | |
⇧ F7 | |
⌥ ⇧ F7 | |
⇧ F8 | |
⌥ F9 | |
⌘ ⌥ F9 | |
⌥ F10 | |
⌥ F8 | |
⌘ ⌥ F8 | |
⌘ F8 | |
⌘ ⌥ ⇧ F8 | |
⌘ ⇧ F8 | |
⌘ ⇧ F8 | |
⌘ 4 | |
⌘ 5 | |
⌘ 8 |
Refactorings
⌃ T | |
Rename... | ⇧ F6 |
Change Signature... | ⌘ F6 |
Move... | F6 |
Introduce Parameter... | ⌘ ⌥ P |
Introduce Variable... | ⌘ ⌥ V |
Global VCS actions
⌃ V | |
⌘ K | |
⌘ T | |
⌘ ⌥ Z | |
⌘ ⇧ K | |
Next Change | ⌃ ⌥ ⇧ ↓ |
Previous Change | ⌃ ⌥ ⇧ ↑ |
⌘ 9 | |
⌘ 0 |
Diff Viewer
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
⇧ ⎋ | |
⌘ ⇧ F12 | |
F12 | |
⌃ ⌥ ← | |
⌃ ⌥ → | |
⌃ ⌥ ↑ | |
⌃ ⌥ ↓ | |
⌘ 1 | |
⌘ 2 | |
⌘ 3 | |
⌘ 4 | |
⌘ 5 | |
⌘ 6 | |
⌘ 7 | |
⌘ 8 | |
⌘ 9 | |
⌘ 0 | |
Show Terminal window | ⌥ F12 |