Skip to content

Instantly share code, notes, and snippets.

@shivajreddy
Last active January 30, 2024 21:09
Show Gist options
  • Save shivajreddy/a6a99e091ab9850b9fa78b63d9774aef to your computer and use it in GitHub Desktop.
Save shivajreddy/a6a99e091ab9850b9fa78b63d9774aef to your computer and use it in GitHub Desktop.
vscode-shiva-windows-keybindings
// :: SHIVA- windows - vscode keybindings
[
// + Terminal
{
"key": "alt+j",
"command": "terminal.focus",
},
{
"key": "alt+j",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "alt+shift+j",
"command": "workbench.action.togglePanel"
},
// + Explorer
{
"key": "alt+1",
"command": "workbench.view.explorer",
"when": "editorTextFocus"
},
{
"key": "alt+1",
"command": "workbench.action.focusActiveEditorGroup",
"when": "!editorTextFocus"
},
{
"key": "ctrl+n",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+n",
"command": "explorer.newFile",
"when": "explorerViewletVisible"
},
{
"key": "alt+shift+n",
"command": "explorer.newFolder",
"when": "explorerViewletVisible"
},
// + VSCode General
{
"key": "alt+0",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "alt+shift+0",
"command": "workbench.action.toggleStatusbarVisibility"
},
{
"key": "alt+shift+P",
"command": "workbench.action.showCommands"
},
// + Tasks
{
"key": "shift+f10",
"command": "workbench.action.tasks.runTask",
"args": "rust: cargo build and run"
},
// + Navigate in and b/w Editor Groups
{
"key": "alt+shift+]",
"command": "workbench.action.nextEditorInGroup"
},
{
"key": "alt+shift+[",
"command": "workbench.action.previousEditorInGroup"
},
{
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusRightGroup"
},
{
"key": "ctrl+j",
"command": "workbench.action.focusBelowGroup"
},
{
"key": "ctrl+k",
"command": "workbench.action.focusAboveGroup"
},
// + Splitting editors
{
"key": "ctrl+-",
"command": "workbench.action.splitEditorDown"
},
{
"key": "ctrl+|",
"command": "workbench.action.splitEditorRight"
},
// + Editor
{
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+alt+L",
"command": "editor.action.formatDocument",
"when": "editorTextFocus"
},
{
"key": "alt+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "alt+w",
"command": "workbench.action.closeActiveEditor"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment