Skip to content

Instantly share code, notes, and snippets.

@ZediWards
Last active October 31, 2025 02:30
Show Gist options
  • Select an option

  • Save ZediWards/8eecb291aa10a209876c05dbd4c625dd to your computer and use it in GitHub Desktop.

Select an option

Save ZediWards/8eecb291aa10a209876c05dbd4c625dd to your computer and use it in GitHub Desktop.
VS Code Settings
// Place your key bindings in this file to override the defaults
[
// [[ Zen Mode ]]
{
"key": "ctrl+space ctrl+z",
"command": "workbench.action.toggleZenMode"
},
// [[ Quick Open Files]]
{
"key": "ctrl+space ctrl+f",
"command": "workbench.action.quickOpen"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
// [[ Quick Open Symbols (whole project) ]]
{
"key": "ctrl+space ctrl+s",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
// [[ Show All Editors (tab dropdown)]]
{
"key": "ctrl+space ctrl+tab",
"command": "workbench.action.showAllEditorsByMostRecentlyUsed"
},
// [[ Close Active Editor]]
{
"key": "ctrl+space ctrl+q",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
// [[ Show hover ]]
{
"key": "ctrl+space ctrl+h",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
// [[ Hover Selection Widget ]]
{
"key": "alt+j",
"command": "selectNextSuggestion",
// "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
"when": "suggestWidgetVisible"
},
{
"key": "alt+k",
"command": "selectPrevSuggestion",
// "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
"when": "suggestWidgetVisible"
},
{
"key": "alt+y",
"command": "acceptSelectedSuggestion",
// "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
"when": "suggestWidgetVisible"
},
// [[ -- NAVIGATION -- ]]
// [[ Workbench ]]
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
{
"key": "ctrl-k",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl-j",
"command": "workbench.action.navigateDown"
},
// [[ Terminal ]]
{
"key": "ctrl+space ctrl+t",
"command": "workbench.action.togglePanel"
},
// {
// "key": "ctrl+shift+n",
// "command": "workbench.action.terminal.new",
// "when": "terminalFocus | editorFocus"
// },
// {
// "key": "ctrl+shift+a",
// "command": "workbench.action.terminal.focusNext",
// "when": "terminalFocus"
// },
// {
// "key": "ctrl+shift+b",
// "command": "workbench.action.terminal.focusPrevious",
// "when": "terminalFocus"
// },
// {
// "key": "ctrl+space ctrl+q",
// "command": "workbench.action.terminal.kill",
// "when": "terminalFocus"
// },
// [[ Go to Definition ]]
// {
// "key": "ctrl+g ctrl+d",
// "command": "editor.action.revealDefinition",
// "when": "editorHasDefinitionProvider && editorTextFocus"
// },
// {
// "key": "f12",
// "command": "-editor.action.revealDefinition",
// "when": "editorHasDefinitionProvider && editorTextFocus"
// },
// [[ Move Editor to Left]]
{
"key": "ctrl+w ctrl+h",
"command": "workbench.action.moveActiveEditorGroupLeft"
},
{
"key": "ctrl+k left",
"command": "-workbench.action.moveActiveEditorGroupLeft"
},
// [[ Move Editor to Right]]
{
"key": "ctrl+w ctrl+l",
"command": "workbench.action.moveActiveEditorGroupRight"
},
{
"key": "ctrl+k right",
"command": "-workbench.action.moveActiveEditorGroupRight"
},
// [[ Go to Reference ]]
{
"key": "ctrl+g ctrl+r",
"command": "references-view.next",
"when": "reference-list.hasResult && references-view.canNavigate"
},
{
"key": "f4",
"command": "-references-view.next",
"when": "reference-list.hasResult && references-view.canNavigate"
},
// [[ Go to Implimentation ]]
{
"key": "ctrl+g ctrl+i",
"command": "editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus"
},
{
"key": "ctrl+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus"
},
// [[ Go to Type Definitions ]]
{
"key": "ctrl+g ctrl+t",
"command": "editor.action.goToTypeDefinition"
},
// [[ Peek Definition ]]
{
"key": "ctrl+p ctrl+d",
"command": "editor.action.peekDefinition",
// "commands": "editor.action.showDefinitionPreviewHover",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "ctrl+shift+f10",
"command": "-editor.action.peekDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
// [[ Peek Reference ]]
{
"key": "ctrl+p ctrl+r",
"command": "editor.action.referenceSearch.trigger"
},
// [[ Peek Impimentation ]]
{
"key": "ctrl+p ctrl+i",
"command": "editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "ctrl+shift+f12",
"command": "-editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
// [[ Peek Type Definitions ]]
{
"key": "ctrl+p ctrl+t",
"command": "editor.action.peekTypeDefinition"
},
// {
// "key": "ctrl+space ctrl+s",
// "command": "workbench.action.showAllSymbols"
// },
// {
// "key": "ctrl+t",
// "command": "-workbench.action.showAllSymbols"
// }
// [[ Python REPL ]]
{
"key": "shift+enter",
"command": "runCommands",
"when": "editorTextFocus && activeEditor != 'workbench.editor.notebook' && editorLangId == 'python'",
"args": {
"commands": [
"python.execInREPL",
"workbench.action.focusFirstEditorGroup"
]
}
},
// [[ Git Lens]]
{
"key": "ctrl+b ctrl+b",
"command": "gitlens.toggleLineBlame"
},
// [[ File Explorer ]]
// {
// "command": "workbench.action.toggleSidebarVisibility",
// "key": "ctrl+e"
// },
// {
// "command": "workbench.files.action.focusFilesExplorer",
// "key": "ctrl+e",
// "when": "editorTextFocus"
// },
// {
// "command": "workbench.files.action.focusFilesExplorer",
// "key": "ctrl+e",
// "when": "editorFocus"
// },
{
"key": "n",
"command": "explorer.newFile",
"when": "filesExplorerFocus && !inputFocus"
},
{
"command": "renameFile",
"key": "r",
"when": "filesExplorerFocus && !inputFocus"
},
{
"key": "shift+n",
"command": "explorer.newFolder",
"when": "explorerViewletFocus"
},
// {
// "key": "shift+n",
// "command": "workbench.action.newWindow",
// "when": "!explorerViewletFocus"
// },
{
"command": "deleteFile",
"key": "d",
"when": "filesExplorerFocus && !inputFocus"
},
// [[ File Explorer with Vim Plugin]]
{
"key": "space e",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.toggleSidebarVisibility",
"workbench.files.action.focusFilesExplorer"
]
},
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus) && !sideBarFocus"
},
{
"key": "space e",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.toggleSidebarVisibility",
"workbench.action.focusActiveEditorGroup"
]
},
"when": "sideBarFocus && !inputFocus"
},
{
"key": "space e",
"when": "vim.mode == 'Normal' && editorTextFocus && foldersViewVisible",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "space c s",
"command": "workbench.action.gotoSymbol",
"when": "vim.mode == 'Normal' && editorTextFocus"
},
{
"key": "enter",
"command": "explorer.openAndPassFocus",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceIsFolder && !inputFocus"
},
{
"key": "enter",
"command": "list.toggleExpand",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && explorerResourceIsFolder && !inputFocus"
}
// [[ Search ]]
// {
// "key": "space s g",
// "command": "workbench.action.findInFiles",
// "when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
// },
// [[ Command Pallet Selections ]]
// command pallet -- select upon letting go of alt though :(
// {
// "key": "alt+j",
// "command": "workbench.action.quickOpenNavigateNext",
// "when": "inQuickOpen"
// },
// {
// "key": "alt+k",
// "command": "workbench.action.quickOpenNavigatePrevious",
// "when": "inQuickOpen"
// },
// {
// "key": "alt+y",
// "command": "workbench.action.acceptSelectedQuickOpenItem",
// // "workbench.action.closeQuickOpen"
// "when": "inQuickOpen"
// },
]
{
// [[ --- Parts of VSCode Settings --- ]]
// [[ Vscode ]]
"chat.commandCenter.enabled": false,
"update.showReleaseNotes": false,
"launch": {},
"search.exclude": {
"**/.venv/**": true,
"**/venv/**": true,
"**/__pycache__/**": true,
"**/node_modules/**": true,
"**/dist/**": true,
"**/build/**": true
},
// [[ Window ]]
"window.titleBarStyle": "custom",
"window.density.editorTabHeight": "compact",
// "window.zoomLevel": 0.5,
// [[ Editor ]]
"editor.formatOnSave": true,
"editor.semanticHighlighting.enabled": true,
"editor.rulers": [88, 110],
"editor.linkedEditing": true,
"editor.minimap.enabled": false,
"editor.lineNumbers": "relative",
"editor.suggest.insertMode": "replace",
"editor.snippetSuggestions": "bottom",
// [[ Workbench ]]
"workbench.colorTheme": "Rosé Pine (no italics)",
"workbench.iconTheme": "vs-seti",
"workbench.editor.showTabs": "none",
"workbench.layoutControl.enabled": false,
// "workbench.statusBar.visible": false,
"workbench.activityBar.location": "top",
"workbench.editor.pinnedTabSizing": "compact",
"workbench.editor.tabSizing": "shrink",
// [[ Files ]]
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
// [[ Misc ui ]]
"accessibility.dimUnfocused.enabled": true,
"zenMode.showTabs": "none",
"zenMode.hideLineNumbers": false,
// [[ Fonts ]]
"scm.inputFontSize": 14,
"notebook.markup.fontSize": 14,
"notebook.output.fontSize": 14,
// [[ Terminal ]]
// prevent VSCode from modifying the terminal colors
"terminal.integrated.minimumContrastRatio": 1,
"terminal.integrated.fontFamily": "FiraCode Nerd Font Mono",
"terminal.integrated.enableMultiLinePasteWarning": false,
// [[ Emmet ]]
"emmet.includeLanguages": {
"javascript": "javascriptReact"
},
// [[ Prettier extension ]]
"prettier.singleQuote": false,
// [[ cSpell extension ]]
"cSpell.userWords": ["isin", "msal", "numpy"],
// [[ --- By Language --- ]]
// [[ Python]]
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"python.analysis.autoImportCompletions": true,
"python.analysis.completeFunctionParens": true,
"python.REPL.sendToNativeREPL": false, //false = terminal, true = repl
"python.analysis.typeCheckingMode": "standard",
// "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
// "python.terminal.activateEnvironment": true,
// flake8 linter
"flake8.args": [
"--max-line-length=88", // matching Blacks defaults
"--extend-ignore=E203,W503" // matching Blacks defaults
],
// black formatter
"black-formatter.args": ["--line-length=88", "--skip-string-normalization"],
// isort
"isort.args": ["--profile=black", "--line-length=88"],
// jupyter notebooks
"notebook.formatOnCellExecution": true,
"notebook.showFoldingControls": "always",
"notebook.defaultFormatter": "ms-python.black-formatter",
"notebook.formatOnSave.enabled": true,
"jupyter.askForKernelRestart": false,
// [[ Javascript ]]
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"javascript.inlayHints.functionLikeReturnTypes.enabled": false,
"workbench.settings.applyToAllProfiles": [
// "javascript.inlayHints.functionLikeReturnTypes.enabled",
// "javascript.inlayHints.parameterNames.enabled",
// "javascript.inlayHints.parameterTypes.enabled",
// "javascript.inlayHints.propertyDeclarationTypes.enabled",
// "javascript.inlayHints.variableTypes.enabled",
// "typescript.inlayHints.functionLikeReturnTypes.enabled",
// "typescript.inlayHints.parameterNames.enabled",
// "typescript.inlayHints.parameterTypes.enabled",
// "typescript.inlayHints.propertyDeclarationTypes.enabled",
// "typescript.inlayHints.variableTypes.enabled",
// "javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName",
// "javascript.inlayHints.variableTypes.suppressWhenTypeMatchesName",
// "typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName",
// "typescript.inlayHints.variableTypes.suppressWhenTypeMatchesName",
"emmet.includeLanguages",
"editor.snippetSuggestions"
],
"javascript.inlayHints.parameterNames.enabled": "none",
"javascript.inlayHints.parameterTypes.enabled": false,
"javascript.inlayHints.propertyDeclarationTypes.enabled": false,
"javascript.inlayHints.variableTypes.enabled": false,
// "typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.parameterNames.enabled": "none",
// "typescript.inlayHints.parameterTypes.enabled": true,
// "typescript.inlayHints.propertyDeclarationTypes.enabled": true,
// "typescript.inlayHints.variableTypes.enabled": true,
// [[ Total typescript extension]]
"totalTypeScript.hideAllTips": false,
"totalTypeScript.hideBasicTips": false,
"totalTypeScript.hiddenTips": [
"ts-object-type",
"type-alias-declaration",
"basic-types",
"array-type",
"null-keyword",
"union-type",
"variable-type-annotation",
"typing-function-parameters",
"interface-declaration",
"literal-type",
"optional-object-property",
"passing-generics-to-types"
],
// [[ Sql ]]
"[sql]": {
"editor.defaultFormatter": "ms-mssql.mssql",
"editor.formatOnSave": false,
"editor.snippetSuggestions": "bottom"
},
// [[ Mssql extension ]]
"mssql.intelliSense.enableQuickInfo": true,
"mssql.intelliSense.lowerCaseSuggestions": false,
"mssql.format.datatypeCasing": "uppercase",
"mssql.format.keywordCasing": "uppercase",
"mssql.openQueryResultsInTabByDefaultDoNotShowPrompt": true,
// [[ Go ]]
"go.toolsManagement.autoUpdate": true,
// [[ Json ]]
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// [[ Graphql ]]
"[graphql]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// [[ Handlebars ]]
"[handlebars]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// [[ Markdown ]]
"[markdown]": {
"editor.wordWrap": "wordWrapColumn",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"files.trimTrailingWhitespace": false
},
// [[ --- Colorscheme tweaks --- ]]
// [[ Catppuccin ]]
"catppuccin.accentColor": "lavender",
// make Mocha specifically very dark
// (this preserves other flavors!)
"catppuccin.colorOverrides": {
"mocha": {
"base": "#101019",
"mantle": "#0e0e16",
"crust": "#0a0a10",
"green": "#8baa88",
"yellow": "#c2b79e"
}
},
// use your accent (pink) on the statusBar as well
"catppuccin.customUIColors": {
"mocha": {
// "statusBar.foreground": "accent"
}
},
"catppuccin.bracketMode": "dimmed",
"catppuccin.workbenchMode": "minimal",
// -------------------------------------------------------------- Melky's
"extensions.experimental.affinity": {
"vscodevim.vim": 1
},
"vim.leader": "<Space>",
"vim.hlsearch": false,
"vim.highlightedyank.enable": true,
"vim.highlightedyank.color": "#a9dc7660",
"vim.highlightedyank.duration": 250,
// Normal mode key bindings
"vim.normalModeKeyBindingsNonRecursive": [],
// Visual mode Keybindings
"vim.visualModeKeyBindings": [
// Stay in visual mode while indenting
{
"before": ["<"],
"commands": ["editor.action.outdentLines"]
},
{ "before": [">"], "commands": ["editor.action.indentLines"] },
// Move selected lines while staying in visual mode
{ "before": ["J"], "commands": ["editor.action.moveLinesDownAction"] },
{ "before": ["K"], "commands": ["editor.action.moveLinesUpAction"] },
// toggle comment selection
{ "before": ["leader", "c"], "commands": ["editor.action.commentLine"] },
// esc visual mode
{ "before": ["f", "d"], "after": ["<ESC>"] }
],
// Insert mode Keybindings
"vim.insertModeKeyBindings": [
{
"before": ["f", "d"],
"after": ["<ESC>"]
}
],
"typescript.workspaceSymbols.scope": "currentProject"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment