Skip to content

Instantly share code, notes, and snippets.

@disouzam
Created October 23, 2024 22:59
Show Gist options
  • Save disouzam/716f7b5981833e55e67c6b0b488b07d2 to your computer and use it in GitHub Desktop.
Save disouzam/716f7b5981833e55e67c6b0b488b07d2 to your computer and use it in GitHub Desktop.
Custom VS Code shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "space",
"command": "notebook.cell.collapseCellInput",
"when": "notebookCellListFocused && !inputFocus && !notebookCellInputIsCollapsed"
},
{
"key": "ctrl+k ctrl+c",
"command": "-notebook.cell.collapseCellInput",
"when": "notebookCellListFocused && !inputFocus && !notebookCellInputIsCollapsed"
},
{
"key": "space",
"command": "notebook.cell.expandCellInput",
"when": "notebookCellInputIsCollapsed && notebookCellListFocused"
},
{
"key": "ctrl+k ctrl+c",
"command": "-notebook.cell.expandCellInput",
"when": "notebookCellInputIsCollapsed && notebookCellListFocused"
},
{
"key": "ctrl+shift+oem_plus",
"command": "editor.action.fontZoomIn"
},
{
"key": "ctrl+shift+oem_minus",
"command": "editor.action.fontZoomOut"
},
{
"key": "ctrl+shift+b",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "f6",
"command": "workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "alt+f5",
"command": "-workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "f6",
"command": "workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "alt+f5",
"command": "-workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "alt+f6",
"command": "workbench.action.editor.previousChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "shift+alt+f5",
"command": "-workbench.action.editor.previousChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "alt+f6",
"command": "workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
{
"key": "shift+alt+f5",
"command": "-workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
{
"key": "ctrl+f",
"command": "list.find",
"when": "listFocus && listSupportsFind"
},
{
"key": "ctrl+alt+f",
"command": "-list.find",
"when": "listFocus && listSupportsFind"
},
{
"key": "ctrl+shift+f9",
"command": "editor.debug.action.selectionToWatch"
},
{
"key": "ctrl+shift+i",
"command": "toggle.diff.renderSideBySide"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment