Skip to content

Instantly share code, notes, and snippets.

@Clancey
Last active August 20, 2019 17:00
Show Gist options
  • Save Clancey/31f366c49c739282e47abba4bcf2331b to your computer and use it in GitHub Desktop.
Save Clancey/31f366c49c739282e47abba4bcf2331b to your computer and use it in GitHub Desktop.
My VSCode keybindings to make it more like VSMac. Place it here: ~/Library/Application Support/Code/User/keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+i",
"command": "editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+enter",
"command": "workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "shift+cmd+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "alt+cmd+s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "cmd+b",
"command": "workbench.action.tasks.build"
},
{
"key": "shift+cmd+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "ctrl+shift+enter",
"command": "workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "cmd+d",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment