Skip to content

VS Code Custom Keybindings ​

This document outlines the custom keyboard shortcuts configured in VS Code. All bindings support both Linux/Windows (Ctrl-based) and macOS (Cmd-based) variants.

Windows/LinuxmacOSCommandDescription
Ctrl+Alt+PCmd+Opt+PSwitch ProfileSwitch between VS Code profiles
Alt+LeftOpt+LeftNavigate BackGo back to the previous editor location

File & Folder Management ​

Windows/LinuxmacOSCommandDescription
Ctrl+NCmd+NNew FileCreate a new file in the explorer
Ctrl+Shift+NCmd+Shift+NNew FolderCreate a new folder in the explorer

Line Editing ​

Windows/LinuxmacOSCommandDescription
Ctrl+DCmd+DCopy Line DownDuplicate the current line downward
Ctrl+UCmd+UCopy Line UpDuplicate the current line upward
Alt+DOpt+DAdd Selection to Next Find MatchMulti-select next occurrence of current word

Code Folding ​

Windows/LinuxmacOSCommandDescription
Alt+FOpt+FFold AllCollapse all code blocks in the editor
Alt+OOpt+OUnfold AllExpand all code blocks in the editor

Code Execution ​

Windows/LinuxmacOSCommandDescription
Ctrl+RCmd+RRun CodeExecute the current file using Code Runner
Ctrl+Shift+RCmd+Shift+RStop CodeStop the running code

Live Server ​

Windows/LinuxmacOSCommandDescription
Ctrl+Alt+SCmd+Opt+SGo OnlineStart Live Server for web development
Ctrl+Alt+QCmd+Opt+QGo OfflineStop Live Server

Version Control ​

Windows/LinuxmacOSCommandDescription
Ctrl+Shift+GCmd+Shift+GSource ControlOpen the Source Control (Git) panel

UI Toggle & Display ​

Windows/LinuxmacOSCommandDescription
Ctrl+KCmd+KToggle Status Bar VisibilityShow or hide the status bar
Ctrl+K Ctrl+KCmd+K Cmd+KToggle Multi-Cursor ModifierSwitch between Alt/Ctrl for multi-cursor selection
Ctrl+Alt+BCmd+Opt+BToggle PanelShow or hide the bottom panel
Alt+MOpt+MToggle Maximized PanelMaximize or restore the bottom panel
Alt+SOpt+SSimple BrowserOpen the simple browser preview

File & Editor Operations ​

Windows/LinuxmacOSCommandDescription
Ctrl+TCtrl+TNew Untitled FileCreate a new untitled text file
Ctrl+Alt+TCmd+Opt+TOpen in Integrated TerminalOpen the current file's folder in terminal
Ctrl+Alt+NCmd+Opt+NMove Editor to New WindowMove current editor to a new window

Debugging & Diagnostics ​

Windows/LinuxmacOSCommandDescription
F7F7Previous Marker in FilesJump to the previous error/warning across files

Development Tools ​

Windows/LinuxmacOSCommandDescription
F4F4Open Native ConsoleOpen the system's native terminal
Ctrl+Shift+ICmd+Shift+IBrowser DevToolsToggle Developer Tools in browser editor

Font & Zoom ​

Windows/LinuxmacOSCommandDescription
Alt+=Opt+=Zoom InIncrease the editor font size
Alt+-Opt+-Zoom OutDecrease the editor font size

Custom Views ​

Windows/LinuxmacOSCommandDescription
Ctrl+Shift+ACmd+Shift+AFocus My ViewFocus on custom view extension

Notes ​

  • Mac Modifier Keys: Cmd = Command, Opt = Option
  • Linux/Windows: Uses Ctrl and Alt combinations
  • When a keybinding includes a space (e.g., Ctrl+K Ctrl+K), press the first combination, then the second
  • Conditional bindings only work when certain conditions are met (e.g., editorTextFocus, isMac)

Released under the MIT License.