Skip to content

Instantly share code, notes, and snippets.

@MatthieuScarset
Last active February 10, 2025 08:42
Show Gist options
  • Save MatthieuScarset/628e7cd9b864dace1f8c183f471fe8b0 to your computer and use it in GitHub Desktop.
Save MatthieuScarset/628e7cd9b864dace1f8c183f471fe8b0 to your computer and use it in GitHub Desktop.
VSCode MacOS keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+g",
"command": "git.viewFileHistory",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+g",
"command": "git.viewFileHistory",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+v",
"command": "svgviewer.open"
},
{
"key": "ctrl+shift+k",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+k",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+'",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+shift+I",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+left",
"command": "cursorWordEndLeftSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+right",
"command": "cursorWordEndRightSelect",
"when": "editorTextFocus"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment