CN
CodeNest Docs
Reference

Keyboard Shortcuts

Master CodeNest with these essential keyboard shortcuts to boost your productivity.

General

ActionWindows/LinuxmacOS
Command PaletteCtrl+Shift+PCmd+Shift+P
Quick OpenCtrl+PCmd+P
New FileCtrl+NCmd+N
Open FileCtrl+OCmd+O
SaveCtrl+SCmd+S
Save AsCtrl+Shift+SCmd+Shift+S
SettingsCtrl+,Cmd+,

Editing

ActionWindows/LinuxmacOS
Cut LineCtrl+XCmd+X
Copy LineCtrl+CCmd+C
Move Line UpAlt+↑Option+↑
Move Line DownAlt+↓Option+↓
Duplicate LineShift+Alt+↓Shift+Option+↓
Delete LineCtrl+Shift+KCmd+Shift+K
Insert Line BelowCtrl+EnterCmd+Enter
Insert Line AboveCtrl+Shift+EnterCmd+Shift+Enter

Selection

ActionWindows/LinuxmacOS
Select AllCtrl+ACmd+A
Select LineCtrl+LCmd+L
Select WordCtrl+DCmd+D
Select All OccurrencesCtrl+Shift+LCmd+Shift+L
Multi-cursorAlt+ClickOption+Click
Column SelectionShift+Alt+DragShift+Option+Drag

Search and Replace

ActionWindows/LinuxmacOS
FindCtrl+FCmd+F
ReplaceCtrl+HCmd+Option+F
Find in FilesCtrl+Shift+FCmd+Shift+F
Replace in FilesCtrl+Shift+HCmd+Shift+H
Find NextF3Cmd+G
Find PreviousShift+F3Cmd+Shift+G

Navigation

ActionWindows/LinuxmacOS
Go to LineCtrl+GCmd+G
Go to SymbolCtrl+Shift+OCmd+Shift+O
Go to DefinitionF12F12
Peek DefinitionAlt+F12Option+F12
Go BackAlt+←Ctrl+-
Go ForwardAlt+→Ctrl+Shift+-

Panels and Views

ActionWindows/LinuxmacOS
ExplorerCtrl+Shift+ECmd+Shift+E
SearchCtrl+Shift+FCmd+Shift+F
Source ControlCtrl+Shift+GCtrl+Shift+G
DebugCtrl+Shift+DCmd+Shift+D
ExtensionsCtrl+Shift+XCmd+Shift+X
TerminalCtrl+`Cmd+`
ProblemsCtrl+Shift+MCmd+Shift+M

Code Formatting

ActionWindows/LinuxmacOS
Format DocumentShift+Alt+FShift+Option+F
Format SelectionCtrl+K Ctrl+FCmd+K Cmd+F
Toggle CommentCtrl+/Cmd+/
Block CommentShift+Alt+AShift+Option+A
IndentCtrl+]Cmd+]
OutdentCtrl+[Cmd+[

Debugging

ActionWindows/LinuxmacOS
Start DebuggingF5F5
Stop DebuggingShift+F5Shift+F5
RestartCtrl+Shift+F5Cmd+Shift+F5
Step OverF10F10
Step IntoF11F11
Step OutShift+F11Shift+F11
Toggle BreakpointF9F9

Git Integration

ActionWindows/LinuxmacOS
Source ControlCtrl+Shift+GCtrl+Shift+G
CommitCtrl+EnterCmd+Enter
PushCtrl+Shift+P → Git: PushCmd+Shift+P → Git: Push
PullCtrl+Shift+P → Git: PullCmd+Shift+P → Git: Pull

Customizing Shortcuts

You can customize keyboard shortcuts:

  1. Open Command Palette (Ctrl+Shift+P)
  2. Type "Preferences: Open Keyboard Shortcuts"
  3. Search for the command you want to modify
  4. 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