Skip to content

Instantly share code, notes, and snippets.

@nsmaciej
Last active June 13, 2022 15:47
Show Gist options
  • Save nsmaciej/b6079ec6a8446c876de60c9aacf72b02 to your computer and use it in GitHub Desktop.
Save nsmaciej/b6079ec6a8446c876de60c9aacf72b02 to your computer and use it in GitHub Desktop.
VSCode Settings
{
// Python.
"jupyter.askForKernelRestart": false,
"python.formatting.provider": "black",
"[python]": {
"editor.rulers": [88]
},
// C/C++.
"C_Cpp.clang_format_fallbackStyle": "LLVM",
"C_Cpp.intelliSenseEngineFallback": "Enabled",
"C_Cpp.suggestSnippets": false,
"cmake.configureOnOpen": true,
"C_Cpp.commentContinuationPatterns": ["/**", "//!", "///"],
"[c][cpp]": {
"editor.rulers": [80],
"editor.tabSize": 2
},
// Rust.
"rust-analyzer.completion.addCallArgumentSnippets": false,
"editor.semanticTokenColorCustomizations": {
"rules": {
"*.mutable": {
"underline": false
}
}
},
// JavaScript et al.
"emmet.excludeLanguages": ["markdown", "jsx", "tsx"],
"javascript.autoClosingTags": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"typescript.inlayHints.parameterNames.enabled": "literals",
"typescript.inlayHints.propertyDeclarationTypes.enabled": true,
"typescript.inlayHints.variableTypes.enabled": true,
"svelte.enable-ts-plugin": true,
"i18n-ally.sortKeys": true,
"i18n-ally.keepFulfilled": true,
"i18n-ally.displayLanguage": "en",
"eslint.validate": ["javascript", "typescript", "typescriptreact", "svelte"],
"[typescript][typescriptreact][javascript][svelte][json][jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
},
// Haskell.
"[haskell]": {
"editor.tabSize": 2
},
"haskell.plugin.ghcide-completions.config.autoExtendOn": false,
"haskell.manageHLS": "GHCup",
"haskell.plugin.ghcide-completions.config.snippetsOn": false,
"haskell.formattingProvider": "none",
// Other languages.
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"html.autoClosingTags": false,
"[markdown]": {
"editor.rulers": [80]
},
"[apl]": {
"editor.unicodeHighlight.ambiguousCharacters": false
},
// Git.
"git.autofetch": true,
"git.confirmSync": false,
"git.countBadge": "tracked",
"git.enableSmartCommit": true,
// Vim.
"vim.camelCaseMotion.enable": true,
"vim.highlightedyank.enable": true,
"vim.joinspaces": false,
"vim.leader": " ",
"vim.replaceWithRegister": true,
"vim.showMarksInGutter": true,
"vim.sneak": true,
"vim.sneakUseIgnorecaseAndSmartcase": true,
"vim.visualstar": true,
"vim.normalModeKeyBindings": [
{ "before": ["<leader>", "e"], "commands": ["workbench.action.quickOpen"] },
{
"before": ["<leader>", "n"],
// This command is deep lore.
"commands": ["workbench.action.showAllEditorsByMostRecentlyUsed"]
},
{
"before": ["<leader>", "o"],
"commands": ["workbench.action.gotoSymbol"]
},
{ "before": ["<leader>", "s"], "commands": ["git.stage"] },
{
"before": ["<leader>", "<leader>"],
"commands": ["workbench.action.switchWindow"]
},
{ "before": ["<leader>", "r"], "commands": ["editor.action.rename"] },
{ "before": ["Z", "Z"], "commands": [":x"] },
{ "before": ["Z", "Q"], "commands": [":q!"] },
{ "before": ["]", "]"], "commands": ["editor.action.marker.nextInFiles"] },
{ "before": ["[", "["], "commands": ["editor.action.marker.prevInFiles"] },
{ "before": ["g", "D"], "commands": ["editor.action.peekDefinition"] },
// Until https://github.com/VSCodeVim/Vim/issues/1490
{ "before": ["u"], "commands": ["undo"] },
{ "before": ["C-r"], "commands": ["redo"] }
],
"vim.visualModeKeyBindings": [
{ "before": ["<leader>", "s"], "commands": ["git.stageSelectedRanges"] },
{ "before": [">"], "commands": ["editor.action.indentLines"] },
{ "before": ["<"], "commands": ["editor.action.outdentLines"] },
{ "before": ["g", "s"], "commands": ["editor.action.sortLinesAscending"] }
],
// Looks.
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"editor.minimap.enabled": false,
"editor.minimap.showSlider": "always",
"git.enableStatusBarSync": false,
"liveshare.showInStatusBar": "whileCollaborating",
"terminal.integrated.cursorBlinking": true,
"window.autoDetectColorScheme": true,
"workbench.settings.useSplitJSON": true,
"workbench.sideBar.location": "right",
"editor.lineHeight": 1.21,
"editor.fontFamily": "Berkeley Mono, FiraCode-Retina, Monaco, monospace",
// Tab stuff.
"workbench.editor.limit.enabled": true,
"workbench.editor.limit.value": 10,
"workbench.editor.showTabs": false,
"workbench.editor.enablePreviewFromCodeNavigation": true,
"workbench.editor.enablePreviewFromQuickOpen": true,
// Editor behaviour.
"editor.folding": false,
"editor.formatOnSave": true,
"editor.lineNumbers": "relative",
"editor.semanticHighlighting.enabled": true,
"editor.stickyTabStops": true,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.wrappingIndent": "indent",
"extensions.ignoreRecommendations": true,
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/dist-newstyle": true
},
"search.smartCase": true,
"search.useIgnoreFiles": false,
"search.useGlobalIgnoreFiles": true,
"window.newWindowDimensions": "maximized",
"window.openFoldersInNewWindow": "on",
"workbench.editor.untitled.hint": "hidden",
"workbench.preferredDarkColorTheme": "Solarized Dark",
"workbench.preferredLightColorTheme": "Solarized Light",
"workbench.startupEditor": "newUntitledFile",
// Explorer settings.
"explorer.autoReveal": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.ts": "${capture}.js",
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"*.jsx": "${capture}.js",
"*.tsx": "${capture}.ts",
"tsconfig.json": "tsconfig.*.json",
"package.json": "package-lock.json, yarn.lock",
"*.hs": "${capture}.o, ${capture}.hi",
"*": "${capture}.bak"
},
// Security.
"liveshare.notebooks.allowGuestExecuteCells": true,
"security.workspace.trust.startupPrompt": "never",
"telemetry.telemetryLevel": "error",
// Volatile.
"python.formatting.blackArgs": ["--target-version=py310"],
"typescript.suggest.completeFunctionCalls": true,
"window.experimental.commandCenter": true,
"editor.renderWhitespace": "all",
"workbench.colorTheme": "Solarized Light"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment