Keyboard Shortcuts
Master CodeNest with these essential keyboard shortcuts to boost your productivity.
General
| Action | Windows/Linux | macOS |
|---|
| Command Palette | Ctrl+Shift+P | Cmd+Shift+P |
| Quick Open | Ctrl+P | Cmd+P |
| New File | Ctrl+N | Cmd+N |
| Open File | Ctrl+O | Cmd+O |
| Save | Ctrl+S | Cmd+S |
| Save As | Ctrl+Shift+S | Cmd+Shift+S |
| Settings | Ctrl+, | Cmd+, |
Editing
| Action | Windows/Linux | macOS |
|---|
| Cut Line | Ctrl+X | Cmd+X |
| Copy Line | Ctrl+C | Cmd+C |
| Move Line Up | Alt+↑ | Option+↑ |
| Move Line Down | Alt+↓ | Option+↓ |
| Duplicate Line | Shift+Alt+↓ | Shift+Option+↓ |
| Delete Line | Ctrl+Shift+K | Cmd+Shift+K |
| Insert Line Below | Ctrl+Enter | Cmd+Enter |
| Insert Line Above | Ctrl+Shift+Enter | Cmd+Shift+Enter |
Selection
| Action | Windows/Linux | macOS |
|---|
| Select All | Ctrl+A | Cmd+A |
| Select Line | Ctrl+L | Cmd+L |
| Select Word | Ctrl+D | Cmd+D |
| Select All Occurrences | Ctrl+Shift+L | Cmd+Shift+L |
| Multi-cursor | Alt+Click | Option+Click |
| Column Selection | Shift+Alt+Drag | Shift+Option+Drag |
Search and Replace
| Action | Windows/Linux | macOS |
|---|
| Find | Ctrl+F | Cmd+F |
| Replace | Ctrl+H | Cmd+Option+F |
| Find in Files | Ctrl+Shift+F | Cmd+Shift+F |
| Replace in Files | Ctrl+Shift+H | Cmd+Shift+H |
| Find Next | F3 | Cmd+G |
| Find Previous | Shift+F3 | Cmd+Shift+G |
Navigation
| Action | Windows/Linux | macOS |
|---|
| Go to Line | Ctrl+G | Cmd+G |
| Go to Symbol | Ctrl+Shift+O | Cmd+Shift+O |
| Go to Definition | F12 | F12 |
| Peek Definition | Alt+F12 | Option+F12 |
| Go Back | Alt+← | Ctrl+- |
| Go Forward | Alt+→ | Ctrl+Shift+- |
Panels and Views
| Action | Windows/Linux | macOS |
|---|
| Explorer | Ctrl+Shift+E | Cmd+Shift+E |
| Search | Ctrl+Shift+F | Cmd+Shift+F |
| Source Control | Ctrl+Shift+G | Ctrl+Shift+G |
| Debug | Ctrl+Shift+D | Cmd+Shift+D |
| Extensions | Ctrl+Shift+X | Cmd+Shift+X |
| Terminal | Ctrl+` | Cmd+` |
| Problems | Ctrl+Shift+M | Cmd+Shift+M |
Code Formatting
| Action | Windows/Linux | macOS |
|---|
| Format Document | Shift+Alt+F | Shift+Option+F |
| Format Selection | Ctrl+K Ctrl+F | Cmd+K Cmd+F |
| Toggle Comment | Ctrl+/ | Cmd+/ |
| Block Comment | Shift+Alt+A | Shift+Option+A |
| Indent | Ctrl+] | Cmd+] |
| Outdent | Ctrl+[ | Cmd+[ |
Debugging
| Action | Windows/Linux | macOS |
|---|
| Start Debugging | F5 | F5 |
| Stop Debugging | Shift+F5 | Shift+F5 |
| Restart | Ctrl+Shift+F5 | Cmd+Shift+F5 |
| Step Over | F10 | F10 |
| Step Into | F11 | F11 |
| Step Out | Shift+F11 | Shift+F11 |
| Toggle Breakpoint | F9 | F9 |
Git Integration
| Action | Windows/Linux | macOS |
|---|
| Source Control | Ctrl+Shift+G | Ctrl+Shift+G |
| Commit | Ctrl+Enter | Cmd+Enter |
| Push | Ctrl+Shift+P → Git: Push | Cmd+Shift+P → Git: Push |
| Pull | Ctrl+Shift+P → Git: Pull | Cmd+Shift+P → Git: Pull |
Customizing Shortcuts
You can customize keyboard shortcuts:
- Open Command Palette (Ctrl+Shift+P)
- Type "Preferences: Open Keyboard Shortcuts"
- Search for the command you want to modify
- Click the pencil icon and enter your new shortcut
Chord Shortcuts
Some shortcuts use chord combinations (press keys in sequence):
- Ctrl+K Ctrl+C - Add line comment
- Ctrl+K Ctrl+U - Remove line comment
- Ctrl+K Ctrl+F - Format selection
- Ctrl+K Ctrl+S - Open keyboard shortcuts