Skip to content

Instantly share code, notes, and snippets.

@bonzini
Last active May 12, 2021 15:51
Show Gist options
  • Save bonzini/f0b36576a9492027414977c4d8eba82b to your computer and use it in GitHub Desktop.
Save bonzini/f0b36576a9492027414977c4d8eba82b to your computer and use it in GitHub Desktop.
VS Code
[
{
"key": "shift+alt+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "shift+alt+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "shift+alt+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "shift+alt+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+alt+right",
"command": "workbench.action.splitEditor"
},
{
"key": "ctrl+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+down",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+right",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+up",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+left",
"command": "workbench.action.terminal.resizePaneLeft",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+shift+left",
"command": "-workbench.action.terminal.resizePaneLeft",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+right",
"command": "workbench.action.terminal.resizePaneRight",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+shift+right",
"command": "-workbench.action.terminal.resizePaneRight",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "shift+alt+down",
"command": "workbench.action.splitEditorOrthogonal"
},
{
"key": "ctrl+k ctrl+\\",
"command": "-workbench.action.splitEditorOrthogonal"
},
{
"key": "shift+alt+right",
"command": "workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "shift+alt+right",
"command": "workbench.action.terminal.splitInstance",
"when": "terminalProcessSupported && terminalTabsFocus"
},
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.splitInstance",
"when": "terminalProcessSupported && terminalTabsFocus"
},
{
"key": "ctrl+shift+t",
"command": "workbench.action.terminal.new",
"when": "terminalFocus"
},
]
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"window.menuBarVisibility": "compact",
"window.titleBarStyle": "custom",
"window.zoomLevel": 0.4,
"window.newWindowDimensions": "maximized",
"remote.SSH.enableX11Forwarding": false,
"remote.SSH.enableDynamicForwarding": false,
"python.pythonPath": "python3",
"editor.emptySelectionClipboard": false,
"editor.fontSize": 13,
"editor.tabSize": 8,
"editor.multiCursorModifier": "ctrlCmd",
"editor.minimap.enabled": false,
"terminal.integrated.tabs.enabled": true,
"terminal.integrated.localEchoLatencyThreshold": -1,
"terminal.integrated.allowChords": false,
"terminal.external.linuxExec": "tilix",
"files.watcherExclude": {
"**/*.sw*": true,
"**/+*/**": true
},
"files.exclude": {
"**/*.sw*": true,
"**/+*/**": true
},
"mesonbuild.buildFolder": "+build",
"mesonbuild.configureOnOpen": false,
"trailing-spaces.deleteModifiedLinesOnly": true,
"trailing-spaces.trimOnSave": true,
"git.untrackedChanges": "separate",
"scm.alwaysShowRepositories": true,
"todohighlight.defaultStyle": {
"borderRadius": "4px",
},
"todohighlight.keywords": [
{
"text": "FIXME:",
"color": "#cccccc",
"backgroundColor": "#550000",
},
{
"text": "TODO:",
"color": "#cccccc",
"backgroundColor": "#553300",
}
],
"vim.useCtrlKeys": true,
"vim.handleKeys": {
"<C-b>": false, // show/hide sidebar,
"<C-c>": false, // copy (paste is p)
"<C-d>": true, // default
"<C-k>": false, // chords
"<C-x>": false, // cut (paste is p)
},
"vim.normalModeKeyBindings": [
{
"before": [",", "/"],
"commands": [":nohl"],
},
{
"before": ["<Tab>"],
"commands": ["editor.action.reindentlines"],
}
],
"vim.insertModeKeyBindings": [ // doesn't work
{
"before": ["<Tab>"],
"commands": ["editor.action.reindentlines"],
}
],
"vim.visualModeKeyBindings": [ // doesn't work
{
"before": ["<PageUp>"],
"after": ["<C-u>"],
},
{
"before": ["<PageDown>"],
"after": ["<C-d>"],
}
],
// "vim.statusBarColorControl": true, // messy
"vim.statusBarColors.visualline": "#5f00af",
"vim.hlsearch": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment