# Visual Studio Code Settings
## Metadata
**Status**:: #x
**Zettel**:: #zettel/literature
**Created**:: [[2024-03-25]]
## Settings
```json
{
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.quickSuggestions": {
"comments": false,
"other": true,
"strings": true
}
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"catppuccin.accentColor": "mauve",
"catppuccin.customUIColors": {
"all": {
"commandCenter.border": "base",
"dropdown.border": "base",
"settings.dropdownBorder": "base"
}
},
"catppuccin.workbenchMode": "flat",
"cSpell.customDictionaries": {
"user": {
"name": "user",
"path": "~/.vim-spell-en.utf-8.add",
"scope": "user"
},
"workspace": {
"name": "workspace",
"path": "${workspaceRoot}/.vim-spell-en.utf-8.add",
"scope": "workspace"
}
},
"cSpell.userWords": [
"catppuccin",
"esbenp",
"Cartograph",
"LXGW",
"openai",
"Hyperlegible",
"gopls"
],
"diffEditor.renderSideBySide": false,
"editor.detectIndentation": true,
"editor.fontFamily": "'CartographCF Nerd Font', 'Cartograph CF', 'LXGW WenKai', 'Symbols Nerd Font Mono', Menlo, monospace",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.formatOnSave": true,
"editor.inlineSuggest.enabled": true,
"editor.lineNumbers": "relative",
"editor.minimap.enabled": false,
"editor.quickSuggestionsDelay": 1800,
"editor.semanticHighlighting.enabled": true,
"git.confirmSync": false,
"github.copilot.enable": {
"*": true
},
"gopls": {
"ui.semanticTokens": true
},
"jest.autoRun": "off",
"markdown.preview.breaks": true,
"markdown.preview.fontFamily": "\"Atkinson Hyperlegible\",\"LXGW WenKai\",\"Symbols Nerd Font\",sans-serif",
"markdown.preview.fontSize": 16,
"markdown.preview.typographer": true,
"redhat.telemetry.enabled": false,
"remote.SSH.defaultExtensions": ["gitpod.gitpod-remote-ssh"],
"settingsSync.ignoredExtensions": ["ms-vscode-remote.remote-wsl"],
"settingsSync.ignoredSettings": ["vim.useSystemClipboard"],
"terminal.integrated.confirmOnExit": "hasChildProcesses",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.fontSize": 16,
"terminal.integrated.macOptionIsMeta": true,
"terminal.integrated.minimumContrastRatio": 1,
"vim.insertModeKeyBindingsNonRecursive": [
{
"after": ["<CR>"],
"before": ["<C-J>"]
},
{
"before": ["<C-L>"],
"commands": ["editor.action.triggerSuggest"]
}
],
"vim.leader": " ",
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["<Leader>", "s", "w"],
"commands": ["workbench.action.findInFiles"]
}
],
"vim.normalModeKeyBindings": [
{
"before": ["<Leader>", "s", "w"],
"after": ["v", "i", "w", "<Leader>", "s", "w"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["H"],
"commands": ["workbench.action.nextEditor"]
},
{
"before": ["L"],
"commands": ["workbench.action.previousEditor"]
},
{
"before": ["<Leader>", "<Space>"],
"commands": ["workbench.action.quickOpen"]
},
{
"before": ["<Leader>", "f", "f"],
"commands": ["workbench.action.quickOpen"]
},
{
"before": ["<Leader>", "f", "t"],
"commands": ["workbench.action.terminal.toggleTerminal"]
},
{
"before": ["<Leader>", "f", "n"],
"commands": ["workbench.action.files.newUntitledFile"]
},
{
"before": ["<Leader>", "c", "a"],
"commands": ["editor.action.quickFix"]
},
{
"before": ["<Leader>", "c", "r"],
"commands": ["editor.action.rename"]
},
{
"before": ["<Leader>", "c", "f"],
"commands": ["editor.action.formatDocument"]
},
{
"before": ["f", "<CR>"],
"commands": [
"editor.action.formatDocument",
"workbench.action.files.save"
]
},
{
"before": ["<Leader>", ","],
"commands": [
{
"args": ["edt active "],
"command": "workbench.action.quickOpen"
}
]
},
{
"before": ["<Leader>", "b", "d"],
"commands": ["workbench.action.closeActiveEditor"]
},
{
"after": ["<C-6>"],
"before": ["<leader>", "`"]
},
{
"before": ["<leader>", "1"],
"commands": ["workbench.action.openEditorAtIndex1"]
},
{
"before": ["<leader>", "2"],
"commands": ["workbench.action.openEditorAtIndex2"]
},
{
"before": ["<leader>", "3"],
"commands": ["workbench.action.openEditorAtIndex3"]
},
{
"before": ["<leader>", "4"],
"commands": ["workbench.action.openEditorAtIndex4"]
},
{
"before": ["<leader>", "5"],
"commands": ["workbench.action.openEditorAtIndex5"]
},
{
"before": ["<leader>", "6"],
"commands": ["workbench.action.openEditorAtIndex6"]
},
{
"before": ["<leader>", "7"],
"commands": ["workbench.action.openEditorAtIndex7"]
},
{
"before": ["<leader>", "8"],
"commands": ["workbench.action.openEditorAtIndex8"]
},
{
"before": ["<leader>", "9"],
"commands": ["workbench.action.openEditorAtIndex9"]
},
{
"before": ["<leader>", "b", "p"],
"commands": ["workbench.action.pinEditor"]
},
{
"before": ["<leader>", "b", "o"],
"commands": ["workbench.action.closeOtherEditors"]
},
{
"before": ["<leader>", "b", "r"],
"commands": ["workbench.action.closeEditorsToTheRight"]
},
{
"before": ["<leader>", "b", "l"],
"commands": ["workbench.action.closeEditorsToTheLeft"]
},
{
"before": ["<leader>", "b", "P"],
"commands": ["workbench.action.closeAllEditors"]
},
{
"before": ["<Leader>", "/"],
"commands": ["workbench.action.findInFiles"]
},
{
"before": ["<Leader>", "s", "s"],
"commands": ["workbench.action.gotoSymbol"]
},
{
"before": ["<Leader>", "s", "S"],
"commands": ["workbench.action.showAllSymbols"]
},
{
"before": ["z", "g"],
"commands": ["cSpell.addWordToUserDictionary"]
},
{
"before": ["2", "z", "g"],
"commands": ["cSpell.addWordToWorkspaceDictionary"]
},
{
"before": ["[", "b"],
"commands": ["workbench.action.previousEditor"]
},
{
"before": ["]", "b"],
"commands": ["workbench.action.nextEditor"]
},
{
"before": ["[", "<Space>"],
"commands": ["editor.action.insertLineBefore"]
},
{
"before": ["]", "<Space>"],
"commands": ["editor.action.insertLineAfter"]
},
{
"before": ["<leader>", "|"],
"commands": ["workbench.action.splitEditor"]
},
{
"before": ["<leader>", "w", "|"],
"commands": ["workbench.action.splitEditor"]
},
{
"before": ["<leader>", "-"],
"commands": ["workbench.action.splitEditorDown"]
},
{
"before": ["<leader>", "w", "-"],
"commands": ["workbench.action.splitEditorDown"]
},
{
"before": ["<C-H>"],
"commands": ["workbench.action.focusLeftGroup"]
},
{
"before": ["<C-L>"],
"commands": ["workbench.action.focusRightGroup"]
},
{
"before": ["<C-J>"],
"commands": ["workbench.action.focusBelowGroup"]
},
{
"before": ["<C-K>"],
"commands": ["workbench.action.focusAboveGroup"]
},
{
"before": ["<C-P>"],
"commands": ["workbench.action.quickOpen"]
},
{
"before": ["<leader>", "u", "e"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
{
"before": ["<leader>", "e"],
"commands": ["workbench.view.explorer"]
},
{
"before": ["<leader>", "g", "g"],
"commands": ["workbench.view.scm"]
},
{
"before": ["g", "r"],
"commands": ["editor.action.goToReferences"]
},
{
"before": ["K"],
"commands": ["editor.action.peekDefinition"]
},
{
"before": ["m", "<CR>"],
"commands": ["workbench.action.tasks.build"]
},
{
"before": ["`", "<CR>"],
"commands": ["workbench.action.tasks.build"]
}
],
"vim.sneak": true,
"vim.useSystemClipboard": true,
"vscodeMarkdownNotes.allowPipedWikiLinks": true,
"window.autoDetectColorScheme": true,
"workbench.colorTheme": "Catppuccin Latte",
"workbench.iconTheme": "catppuccin-latte",
"workbench.layoutControl.enabled": false,
"workbench.preferredDarkColorTheme": "Catppuccin Mocha",
"workbench.preferredLightColorTheme": "Catppuccin Latte",
"terminal.integrated.defaultProfile.linux": "zsh"
}
```
## Shortcuts
```json
[
{
"key": "ctrl+/",
"command": "workbench.action.terminal.toggleTerminal",
"when": "!editorTextFocus || editorTextFocus && vim.active && vim.mode == 'Normal'"
}
]
```