Skip to content

Instantly share code, notes, and snippets.

@spartanatreyu
Last active July 21, 2023 02:28
Show Gist options
  • Save spartanatreyu/0effd998f6c373307cf84eed37aa2026 to your computer and use it in GitHub Desktop.
Save spartanatreyu/0effd998f6c373307cf84eed37aa2026 to your computer and use it in GitHub Desktop.
Personal vscode keybindings
// Place your key bindings in this file to overwrite the defaults
[
// Close window if trying to close a tab and there are not tabs left to close
{
"key": "cmd+w",
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
// Overwrite default tab switching shortcuts:
{
"key": "ctrl+tab",
"command": "-workbench.action.openNextRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.openPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenNavigateNextInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.quickOpenNavigatePreviousInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "ctrl+shift+'",
"command": "editor.emmet.action.wrapWithAbbreviation"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment