Skip to content

Key Bindings Supported

Prasun Anand edited this page Sep 25, 2024 · 2 revisions

Not all of the below bindings are supported. It's a reference

General Navigation

Command Windows/Linux macOS
Open File Ctrl+O Cmd+O
Save File Ctrl+S Cmd+S
Close File/Tab Ctrl+W Cmd+W
Close All Files/Tabs Ctrl+K W Cmd+Option+W
Switch Between Tabs Ctrl+Tab Cmd+Option+Right-Arrow/Left- Arrow
Go to File Ctrl+P Cmd+P
Go to Line Ctrl+G Cmd+L

Editing

Command Windows/Linux macOS
Undo Ctrl+Z Cmd+Z
Redo Ctrl+Y Cmd+Shift+Z
Cut Ctrl+X Cmd+X
Copy Ctrl+C Cmd+C
Paste Ctrl+V Cmd+V
Select All Ctrl+A Cmd+A
Find Ctrl+F Cmd+F
Replace Ctrl+H Cmd+Option+F

Code Navigation and Refactoring

Command Windows/Linux macOS
Go to Definition/Declaration: F12 or Ctrl+Click (Windows/Linux), Cmd+Click (macOS)
Find References: Shift+F12 (Windows/Linux), Cmd+Shift+F12 (macOS)
Rename Symbol: F2 (Windows/Linux), Cmd+Option+R (macOS)
Jump to Next Error/Warning: F8 (Windows/Linux), Cmd+Option+F8 (macOS)
Jump to Previous Error/Warning: Shift+F8 (Windows/Linux), Cmd+Option+Shift+F8 (macOS)
Code Formatting: Ctrl+Shift+F (Windows/Linux), Cmd+Option+L (macOS)

Debugging

Command Windows/Linux macOS
Start Debugging F5 Cmd+Shift+D
Stop Debugging Shift+F5 Cmd+Shift+F5
Step Over F10 Cmd+Option+F10
Step Into F11 Cmd+Option+F11
Step Out Shift+F11 Cmd+Shift+Option+F11

Search and Replace

Command Windows/Linux macOS
Global Search Ctrl+Shift+F Cmd+Shift+F
Global Replace Ctrl+Shift+H Cmd+Shift+H

Git Integration

Command Windows/Linux macOS
Commit Changes Ctrl+Enter Cmd+Enter
View Git Log Ctrl+Shift+G Cmd+Shift+G

Terminal/Command Palette

Command Windows/Linux macOS
Open Terminal Ctrl+` Cmd+`
Open Command Palette Ctrl+Shift+P Cmd+Shift+P

Project Management

Command Windows/Linux macOS
Toggle Sidebar Ctrl+B Cmd+B
Show/Hide Explorer Ctrl+Shift+E Cmd+Shift+E