Visual Studio Keymap for Visual Studio Code

September 21, 2018 ยท View on GitHub

This extension ports popular Visual Studio keyboard shortcuts to Visual Studio Code. After installing the extension and restarting VS Code your favorite keyboard shortcuts from Visual Studio are now available.

Why don't all the keyboard shortcuts work?

VS Code does not implement all of the commands available in Visual Studio. If you would like to see a feature in VS Code that is in Visual Studio, please open an issue on GitHub.

How do I contribute a keyboard shortcut?

We may have missed a keyboard shortcut. If we did please help us out! It is very easy to make a PR.

  1. Head over to our GitHub repository.
  2. Open package.json.
  3. Add a JSON object to contributes.keybindings as seen below.
  4. Open a pull request.
{
    "mac": "<keyboard shortcut for mac>",
    "linux": "<keyboard shortcut for linux",
    "win": "<keyboard shortcut for windows",
    "key": "<default keyboard shortcut>",
    "command": "<name of the command in VS Code"
}

You can read more about how to contribute keybindings in extensions in the official documentation.

What keyboard shortcuts are included?

CommandKey
cursorColumnSelectDownshift+alt+down
cursorColumnSelectLeftshift+alt+left
cursorColumnSelectPageDownshift+alt+pagedown
cursorColumnSelectPageUpshift+alt+pageup
cursorColumnSelectRightshift+alt+right
cursorColumnSelectUpshift+alt+up
cursorWordStartRightctrl+right
cursorWordStartRightSelectctrl+shift+right
deleteWordEndRightctrl+delete
deleteWordStartLeftctrl+backspace
editor.action.addSelectionToNextFindMatchctrl+w
editor.action.clipboardCutActionctrl+l
editor.action.copyLinesDownActionctrl+d
editor.action.deleteLinesctrl+shift+l
editor.action.formatDocumentctrl+kctrl+d
editor.action.insertLineAftershift+enter
editor.action.insertLineBeforectrl+enter
editor.action.referenceSearch.triggeralt+f12
editor.action.renamectrl+rctrl+r
editor.action.toggleRenderWhitespacectrl+rctrl+w
editor.action.triggerSuggestctrl+alt+space
editor.debug.action.runToCursorctrl+f10
editor.foldAllctrl+kctrl+m
insertSnippetctrl+kctrl+x
redoctrl+y
undoalt+space
workbench.action.closeActiveEditorctrl+f4
workbench.action.debug.restartctrl+shift+f5
workbench.action.files.openFileFolderctrl+shift+g
workbench.action.files.saveAllctrl+shift+s
workbench.action.navigateBackctrl+-
workbench.action.navigateForwardctrl+shift+-
workbench.action.output.toggleOutputctrl+alt+o
workbench.action.quickOpenctrl+
workbench.action.tasks.buildctrl+shift+b
workbench.action.toggleZenModeshift+alt+enter
workbench.debug.viewlet.action.addFunctionBreakpointActionctrl+b
workbench.debug.viewlet.action.removeAllBreakpointsctrl+shift+f9
workbench.view.explorerctrl+alt+l