Skip to content

Instantly share code, notes, and snippets.

@tjx666
Last active February 14, 2022 06:12
Show Gist options
  • Save tjx666/5256af269f9a3bb5784c5fa7789a58a8 to your computer and use it in GitHub Desktop.
Save tjx666/5256af269f9a3bb5784c5fa7789a58a8 to your computer and use it in GitHub Desktop.
VSCode settings
{
  "debug.console.fontFamily": "'MesloLGS NF', 'Monaco'",
  "debug.javascript.codelens.npmScripts": "never",
  "explorer.confirmDelete": false,
  "explorer.copyRelativePathSeparator": "/",
  "files.autoSave": "afterDelay",
  "files.exclude": { "**/.git": true },
  "files.maxMemoryForLargeFilesMB": 8192,
  "git.autofetch": true,
  "git.confirmSync": false,
  // "http.proxy": "http://127.0.0.1:7890",
  "json.maxItemsComputed": 8888,
  "oneDarkPro.markdownStyle": false,
  "scm.inputFontFamily": "editor",
  "search.useIgnoreFiles": true,
  "security.workspace.trust.untrustedFiles": "open",
  "telemetry.telemetryLevel": "off",
  "terminal.integrated.gpuAcceleration": "on",
  "window.title": "${activeEditorMedium}${separator}${rootName}",
  "terminal.integrated.defaultProfile.osx": "zsh",
  "terminal.integrated.enableShellIntegration": true,
  "workbench.experimental.layoutControl.enabled": true,
  // "explorer.experimental.fileNesting.enabled": true,
  // "typescript.tsserver.experimental.enableProjectDiagnostics": false,

  // editor
  "editor.accessibilitySupport": "off",
  "editor.bracketPairColorization.enabled": true,
  // not work when enable autoSave
  // "editor.codeActionsOnSave": {
  //   "source.fixAll": false,
  //   "source.addMissingImports": true,
  //   "source.fixAll.eslint": true,
  //   "source.fixAll.stylelint": true
  // },
  "editor.formatOnSave": false,
  "editor.cursorBlinking": "smooth",
  "editor.cursorSmoothCaretAnimation": true,
  "editor.foldingHighlight": false,
  "editor.fontFamily": "'Fira Code'",
  "editor.fontSize": 12,
  "editor.lightbulb.enabled": false,
  "editor.linkedEditing": true,
  "editor.minimap.enabled": false,
  "editor.quickSuggestions": {
    "strings": true,
    "comments": true,
    "other": true
  },
  "editor.smoothScrolling": true,
  "editor.stickyTabStops": true,
  "editor.suggest.preview": true,
  "editor.suggest.shareSuggestSelections": true,
  "editor.suggest.snippetsPreventQuickSuggestions": false,
  "editor.suggestSelection": "first",
  "editor.unfoldOnClickAfterEndOfLine": true,
  "editor.unicodeHighlight.allowedLocales": {
    "zh-hans": true,
    "zh-hant": true
  },

  // language
  "html.autoClosingTags": true,
  "javascript.preferences.quoteStyle": "single",
  "javascript.preferences.useAliasesForRenames": false,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "typescript.preferences.quoteStyle": "single",
  "typescript.preferences.useAliasesForRenames": false,
  "typescript.tsserver.maxTsServerMemory": 8192,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "files.associations": {
    ".env": "env",
    "*.jsxinc": "javascript"
  },
  "vsicons.associations.files": [
    { "icon": "config", "extensions": ["env"], "format": "svg" }
  ],
  "[javascript][javascriptreact][typescript][typescriptreact][vue][json][jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html][css][less][scss][markdown][xml][yaml][svg]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  // terminal
  "terminal.integrated.cursorBlinking": true,
  "terminal.integrated.enableBell": true,
  "terminal.integrated.fontFamily": "'MesloLGS NF', 'Monaco'",
  "terminal.integrated.fontSize": 12,

  // workbench
  "workbench.editorAssociations": {
    "*.png": "luna.editor",
    "*.jpg": "luna.editor",
    "*.jpeg": "luna.editor",
    "*.ico": "luna.editor"
  },
  "workbench.editor.highlightModifiedTabs": true,
  "workbench.editor.limit.enabled": true,
  "workbench.editor.limit.perEditorGroup": true,
  "workbench.editor.limit.value": 8,
  "workbench.editor.scrollToSwitchTabs": true,
  "workbench.list.smoothScrolling": true,
  "workbench.startupEditor": "welcomePage",
  "workbench.tree.indent": 14,

  // extensions
  "livePreview.openPreviewTarget": "External Browser",
  "code-runner.executorMap": {
    "typescript": "ts-node",
    "cpp": "cd $dir && g++ $fileName -std=c++2a -Wall -o $fileNameWithoutExt && ./$fileNameWithoutExt",
    "dart": "/Users/yutengjing/apps/flutter/latest/bin/dart run --enable-asserts $fullFileName"
  },
  "code-runner.showRunIconInEditorTitleMenu": false,
  "code-runner.terminalRoot": "/",
  "colorInfo.languages": [
    {
      "selector": "css",
      "colors": "css"
    },
    {
      "selector": "less",
      "colors": "css"
    },
    {
      "selector": "scss",
      "colors": "css"
    },
    {
      "selector": "vue",
      "colors": "css"
    }
  ],
  "C_Cpp.addNodeAddonIncludePaths": true,
  "C_Cpp.autocompleteAddParentheses": true,
  "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Chromium, IndentWidth: 2, ColumnLimit: 0 }",
  "C_Cpp.default.cppStandard": "c++20",
  "C_Cpp.default.cStandard": "c17",
  "C_Cpp.experimentalFeatures": "Enabled",
  "C_Cpp.intelliSenseCacheSize": 8192,
  "C_Cpp.intelliSenseMemoryLimit": 8192,
  "C_Cpp.intelliSenseUpdateDelay": 500,
  "c-cpp-flylint.clang.enable": true,
  "c-cpp-flylint.clang.standard": ["c++2a"],
  "c-cpp-flylint.cppcheck.enable": false,
  "c-cpp-flylint.flawfinder.enable": false,
  "c-cpp-flylint.flexelint.enable": false,
  "c-cpp-flylint.lizard.enable": false,
  "c-cpp-flylint.pclintplus.enable": false,
  "gitHistory.showEditorTitleMenuBarIcons": false,
  "gitlens.codeLens.scopes": [],
  "gitlens.currentLine.enabled": false,
  "gitlens.statusBar.format": "${author}, ${agoOrDate} • ${message}",
  "markdownlint.config": {
    "default": true,
    "MD033": false,
    "MD041": false
  },
  "markdown-preview-github-styles.colorTheme": "light",
  "npm.validate.enable": false,
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "path-autocomplete.extensionOnImport": true,
  "path-autocomplete.ignoredFilesPattern": "*.md",
  "prettier.documentSelectors": ["**/*.svg"],
  "redhat.telemetry.enabled": false,
  "template-string-converter.validLanguages": [
    "vue",
    "typescript",
    "javascript",
    "typescriptreact",
    "javascriptreact"
  ],
  "template-string-converter.autoRemoveTemplateString": true,
  "template-string-converter.quoteType": "single",
  // https://github.com/Gruntfuggly/todo-tree/issues/255#issuecomment-574279033
  "todo-tree.regex.regex": "(?:(?://|#|<!--|;|/\\*\\*?|\\*|(-|\\d+.))\\s*($TAGS))",
  "todo-tree.filtering.useBuiltInExcludes": "file and search excludes",
  "todo-tree.general.tags": ["TODO:", "FIXME:", "NOTE:", "[ ]", "[x]"],
  "todo-tree.highlights.customHighlight": {
    "TODO:": {
      "foreground": "#ffffff",
      "background": "#ffbd2a",
      "iconColour": "#ffbd2a"
    },
    "FIXME:": {
      "foreground": "#ffffff",
      "background": "#f06292",
      "icon": "flame",
      "iconColour": "#f06292"
    },
    "NOTE:": {
      "foreground": "#808080",
      "background": "#ffff00",
      "icon": "alert",
      "iconColour": "#ffff00"
    }
  },
  "todo-tree.highlights.defaultHighlight": {
    "gutterIcon": false,
    "rulerLane": "none"
  },
  "todo-tree.ripgrep.ripgrep": "/usr/local/bin/rg",
  "tsImportSorter.configuration.autoFormat": "off",
  "tsImportSorter.configuration.groupRules": [
    ["^[@][^/]", {}],
    [
      "^@(/|$)",
      "^actions?(/|$)",
      "^apis?(/|$)",
      "^assets(/|$)",
      "^components?(/|$)",
      "^helpers?(/|$)",
      "^pages?(/|$)",
      "^sagas?(/|$)",
      "^selectors?(/|$)",
      "^reducers?(/|$)",
      "^typings?(/|$)",
      "^utils(/|$)"
    ],
    { "flags": "named", "regex": "^[.]" },
    [
      { "flags": "scripts" },
      { "flags": "scripts", "regex": "[.]((css)|(less)|(scss))$" }
    ]
  ],
  "tsImportSorter.configuration.keepUnused": [".*"],
  "tsImportSorter.configuration.wrappingStyle": "prettier",

  // long config
  "cSpell.language": "en-US",
  "cSpell.checkLimit": 888,
  "cSpell.dictionaries": ["myDict"],
  "cSpell.ignorePaths": [
    "node_modules",
    "vscode-extension",
    ".git/objects",
    ".idea",
    ".dart_tool",
    "**/*.lock",
    "**/*.log",
    "package-lock.json",
    "**/pnpm-lock.yaml"
  ],
  "cSpell.languageSettings": [
    {
      "languageId": "dart",
      "patterns": [
        {
          "name": "Dart-RegExp-String",
          "pattern": "/\\br(['\"]).*?\\1/g"
        }
      ],
      "ignoreRegExpList": ["Dart-RegExp-String"]
    }
  ],
  "cSpell.dictionaryDefinitions": [
    { "name": "myDict", "path": "/Users/yutengjing/.my-spell-check-dict.txt" }
  ],
  "cSpell.userWords": [],
  "cSpell.enableFiletypes": [
    "!asciidoc",
    "!csharp",
    "!graphql",
    "!handlebars",
    "!haskell",
    "!jade",
    "!latex",
    "!plaintext",
    "!pug",
    "!restructuredtext",
    "bat",
    "cmake",
    "cmake-cache",
    "css",
    "dart",
    "diff",
    "dotenv",
    "env",
    "git-rebase",
    "gitignore",
    "go",
    "gradle",
    "groovy",
    "hosts",
    "html",
    "ignore",
    "java",
    "javascript",
    "javascriptreact",
    "json",
    "jsonc",
    "makefile",
    "markdown",
    "nginx",
    "objective-c",
    "objective-cpp",
    "powershell",
    "properties",
    "python",
    "scss",
    "search-result",
    "shellscript",
    "sql",
    "svg",
    "swift",
    "typescript",
    "typescriptreact",
    "vue",
    "vue-html",
    "wallaby-output",
    "wasm",
    "xml",
    "yaml"
  ],

  // depracated
  // "colorize.colorized_colors": ["HEXA", "RGB"],
  // "colorize.enable_search_variables": false,
  // "colorize.languages": [
  //   "css",
  //   "scss",
  //   "less",
  //   "html",
  //   "svg",
  //   "javascript",
  //   "javascriptreact",
  //   "typescript",
  //   "typescriptreact",
  //   "vue",
  //   "jsonc"
  // ],
  // "emojisense.languages": {
  //   "markdown": true
  // },
  // "cssPeek.peekFromLanguages": [
  //   "html",
  //   "vue",
  //   "javascriptreact",
  //   "typescriptreact"
  // ],
  // "css.enabledLanguages": ["html", "vue"],
  // "css.styleSheets": [
  //   "${fileBasenameNoExtension}.css",
  //   "${fileBasenameNoExtension}.less",
  //   "${fileBasenameNoExtension}.scss"
  // ],
  // "git-graph.showStatusBarItem": false,
  // "dart.debugExternalLibraries": true,
  // "dart.debugSdkLibraries": false,
  // "dart.devToolsBrowser": "chrome",
  // "dart.devToolsPort": 9100,
  // "dart.devToolsTheme": "light",
  // "dart.showDevToolsDebugToolBarButtons": false,
  // "dart.showTodos": false,
  // "dart.flutterSdkPaths": [
  //   "/Users/yutengjing/apps/flutter/1.22.4",
  //   "/Users/yutengjing/apps/flutter/2.2.0",
  //   "/Users/yutengjing/apps/flutter/latest"
  // ],
  // "dart.env": {
  //   "http_proxy": "http://127.0.0.1:7890",
  //   "http_proxys": "http://127.0.0.1:7890"
  // },

  // often change
  "workbench.iconTheme": "vscode-icons",
  "window.zoomLevel": 2,
  "editor.inlineSuggest.enabled": true,
  "workbench.colorTheme": "One Dark Pro"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment