Skip to content

Instantly share code, notes, and snippets.

@zgulde
Created July 10, 2023 17:51
Show Gist options
  • Save zgulde/97462768e032372863472b7d7b72ce93 to your computer and use it in GitHub Desktop.
Save zgulde/97462768e032372863472b7d7b72ce93 to your computer and use it in GitHub Desktop.
vscode settings
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+f",
"command": "cursorWordEndRight",
"when": "textInputFocus"
},
{
"key": "alt+right",
"command": "-cursorWordEndRight",
"when": "textInputFocus"
},
{
"key": "alt+b",
"command": "cursorWordLeft",
"when": "textInputFocus"
},
{
"key": "alt+left",
"command": "-cursorWordLeft",
"when": "textInputFocus"
},
{
"key": "alt+d",
"command": "deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+delete",
"command": "-deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+w",
"command": "deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+backspace",
"command": "-deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+p",
"command": "cursorUpSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+n",
"command": "cursorDownSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+f",
"command": "cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+b",
"command": "cursorLeftSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+b",
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "ctrl+n",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "cmd+'",
"command": "workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "cmd+;",
"command": "workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "shift+cmd+1",
"command": "workbench.action.closeEditorsInOtherGroups"
},
{
"key": "ctrl+enter",
"command": "extension.xtmeval",
"when": "editorTextFocus && editorLangId == 'extempore'"
},
{
"key": "cmd+enter",
"command": "-extension.xtmeval",
"when": "editorTextFocus && editorLangId == 'extempore'"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
"when": "!activeEditorGroupEmpty"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenNavigateNextInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.quickOpenLeastRecentlyUsedEditorInGroup",
"when": "!activeEditorGroupEmpty"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.quickOpenNavigatePreviousInEditorPicker",
"when": "inEditorsPicker && inQuickOpen"
},
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+[", // whatever keybinding you want
"command": "cursorMove",
"args": {
"to": "prevBlankLine",
"select": false
},
"when": "editorTextFocus"
},
{
"key": "ctrl+]",
"command": "cursorMove",
"args": {
"to": "nextBlankLine",
"select": false
},
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+[", // whatever keybinding you want
"command": "cursorMove",
"args": {
"to": "prevBlankLine",
"select": true // false is the default if omitted
},
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+]",
"command": "cursorMove",
"args": {
"to": "nextBlankLine",
"select": true // false is the default if omitted
},
"when": "editorTextFocus"
},
// {
// "key": "ctrl+c ctrl+c",
// "command": "workbench.action.terminal.runSelectedText"
// }
]
{
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"workbench.startupEditor": "newUntitledFile",
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.altClickMovesCursor": false,
"terminal.integrated.fontSize": 16,
"terminal.integrated.lineHeight": 1.2,
"terminal.integrated.macOptionIsMeta": true,
"terminal.integrated.showExitAlert": false,
"editor.rulers": [80, 120],
"editor.lineHeight": 24,
"editor.fontLigatures": true,
"editor.fontSize": 16,
// "editor.fontFamily": "'Operator Mono Book', 'Fantasque Sans Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontFamily": "'Fantasque Sans Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.horizontal": "hidden",
"editor.inlayHints.fontFamily": "'Fantasque Sans Mono', Menlo, Monaco, 'Courier New', monospace",
////////////////////////
// * Extension Config //
////////////////////////
"powermode.enabled": false,
"python.defaultInterpreterPath": "/opt/homebrew/anaconda3/bin/python",
"python.terminal.activateEnvironment": false,
/////////
// Vim //
/////////
"vim.highlightedyank.enable": true,
"vim.highlightedyank.duration": 500,
"vim.insertModeKeyBindings": [
{"before": ["j", "k"], "after": ["<Esc>"]},
{"before": ["<C-e>"], "commands": [{"command": "cursorEnd"}]},
{"before": ["<C-a>"], "commands": [{"command": "cursorLineStart"}]},
{"before": ["<C-k>"], "commands": [{"command": "deleteAllRight"}]},
],
"vim.normalModeKeyBindings": [
{"before": ["Y"], "after": ["y", "$"]},
{"before": ["<leader>", ";"], "after": ["g", "c"]},
{"before": ["<leader>", ";", ";"], "after": ["g", "c", "c"]},
{"before": ["<leader>", "f", "s"], "after": [":", "w", "<Enter>"]},
{"before": ["<leader>", "w", "s"], "commands": [{"command": "workbench.action.splitEditorDown"}]},
{"before": ["<leader>", "w", "v"], "commands": [{"command": "workbench.action.splitEditorRight"}]},
{"before": ["<leader>", "w", "q"], "commands": [{"command": "workbench.action.closeActiveEditor"}]},
{"before": ["<leader>", "w", "c"], "commands": [{"command": "workbench.action.closeActiveEditor"}]},
{"before": ["<leader>", "g", "g"], "commands": [{"command": "git-graph.view"}]},
{"before": ["<leader>", "s", "c"], "after": [":", "n", "o", "h", "<Enter>"]},
{"before": ["K"], "commands": [{"command": "editor.action.showHover"}]},
],
"vim.leader": "<space>",
"hediet.vscode-drawio.local-storage": "eyIuZHJhd2lvLWNvbmZpZyI6IntcImxhbmd1YWdlXCI6XCJcIixcImN1c3RvbUZvbnRzXCI6W3tcIm5hbWVcIjpcIkluY29uc29sYXRhXCJ9XSxcImxpYnJhcmllc1wiOlwiZ2VuZXJhbDtiYXNpYzthcnJvd3MyO2luZm9ncmFwaGljXCIsXCJjdXN0b21MaWJyYXJpZXNcIjpbXCJMLnNjcmF0Y2hwYWRcIl0sXCJwbHVnaW5zXCI6W10sXCJyZWNlbnRDb2xvcnNcIjpbXSxcImZvcm1hdFdpZHRoXCI6XCIyNDBcIixcImNyZWF0ZVRhcmdldFwiOmZhbHNlLFwicGFnZUZvcm1hdFwiOntcInhcIjowLFwieVwiOjAsXCJ3aWR0aFwiOjg1MCxcImhlaWdodFwiOjExMDB9LFwic2VhcmNoXCI6dHJ1ZSxcInNob3dTdGFydFNjcmVlblwiOnRydWUsXCJncmlkQ29sb3JcIjpcIiNkMGQwZDBcIixcImRhcmtHcmlkQ29sb3JcIjpcIiM2ZTZlNmVcIixcImF1dG9zYXZlXCI6dHJ1ZSxcInJlc2l6ZUltYWdlc1wiOm51bGwsXCJvcGVuQ291bnRlclwiOjAsXCJ2ZXJzaW9uXCI6MTgsXCJ1bml0XCI6MSxcImlzUnVsZXJPblwiOmZhbHNlLFwidWlcIjpcIlwifSJ9",
"hediet.vscode-drawio.theme": "min",
"jupyter.collapseCellInputCodeByDefault": false,
"jupyter.interactiveWindow.textEditor.executeSelection": true,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"editor.suggestSelection": "first",
"workbench.colorTheme": "Visual Studio Light",
"editor.cursorStyle": "line",
"editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"editor.wordWrap": "off",
"editor.multiCursorModifier": "ctrlCmd",
"markdown.preview.lineHeight": 1.4,
"editor.minimap.enabled": false,
"redhat.telemetry.enabled": true,
"window.zoomLevel": -1,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment