Keyboard Shortcuts
Complete reference. On Windows and Linux, use Ctrl instead of Cmd and Alt instead of Option.
Navigation
| Action |
Shortcut |
| Quick open (files, content, references) |
Cmd/Ctrl+P |
| Open settings |
Cmd/Ctrl+, |
| Toggle left sidebar |
Cmd/Ctrl+B |
| Toggle right sidebar |
Cmd/Ctrl+J |
| Filter file tree |
Cmd/Ctrl+F (sidebar focused) |
Files & tabs
| Action |
Shortcut |
| Save and commit |
Cmd/Ctrl+S |
| New (same type as current) |
Cmd/Ctrl+N |
| New tab (Start page) |
Cmd/Ctrl+T |
| Close tab |
Cmd/Ctrl+W |
| Switch tab left |
Cmd/Ctrl+Option/Alt+Left |
| Switch tab right |
Cmd/Ctrl+Option/Alt+Right |
| Split vertically |
Cmd/Ctrl+\ |
| Split horizontally |
Cmd/Ctrl+Shift+\ |
Editing
| Action |
Shortcut |
| Bold |
Cmd/Ctrl+B (editor focused) |
| Italic |
Cmd/Ctrl+I |
| Link |
Cmd/Ctrl+K |
| Inline code |
Cmd/Ctrl+E |
| Find |
Cmd/Ctrl+F (editor focused) |
| Find and replace |
Cmd/Ctrl+H |
AI features
| Action |
Shortcut |
| Trigger inline suggestion |
++ (two plus signs quickly) |
| Accept suggestion |
Tab, Enter, or Right |
| Cycle suggestions forward |
Down |
| Cycle suggestions back |
Up |
| Dismiss suggestion |
Esc, Left, or click elsewhere |
| Add comment on selection |
Cmd/Ctrl+Shift+L |
Code execution
| Action |
Shortcut |
| Run selection or current line |
Cmd/Ctrl+Enter |
| Run entire file |
Shift+Cmd/Ctrl+Enter |
View
| Action |
Shortcut |
| Zoom in |
Cmd/Ctrl++ |
| Zoom out |
Cmd/Ctrl+- |
| Toggle word wrap |
Option/Alt+Z |
File explorer
| Action |
Shortcut |
| Navigate up / down |
↑ / ↓ |
| Expand folder |
→ |
| Collapse folder / go to parent |
← |
| Open file / toggle folder |
Space |
| Rename |
Enter |
| Jump to first / last item |
Home / End |