2019-09-17

  常用vscode配置

{

  "typescript.tsdk": "node_modules/typescript/lib",

  "eslint.options": {

    "extensions": [".js", ".vue", ".ts", ".tsx"]

  },

  "eslint.validate": [

    "javascript",

    "javascriptreact",

    "html",

    "jsx",

    "typescriptreact",

    {

      "language": "html",

      "autoFix": true

    },

    {

      "language": "vue",

      "autoFix": true

    },

    {

      "language": "ts",

      "autoFix": true

    },

    {

      "language": "tsx",

      "autoFix": true

    }

  ],

  "explorer.confirmDelete": false,

  "[javascript]": {

    "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"

  },

  "files.insertFinalNewline": true,

  "files.associations": {

    "*.cjson": "jsonc",

    "*.wxss": "css",

    "*.wxs": "javascript",

    "*.css": "tailwindcss"

  },

  "emmet.includeLanguages": {

    "wxml": "html"

  },

  "javascript.updateImportsOnFileMove.enabled": "always",

  "eslint.codeAction.disableRuleComment": {},

  "workbench.startupEditor": "welcomePage",

  "explorer.compactFolders": false,

  "[json]": {

    "editor.defaultFormatter": "vscode.json-language-features"

  },

  "javascript.validate.enable": false,

  "editor.tabSize": 2,

  "[less]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode",

    "editor.colorDecorators": true

  },

  "[html]": {

    "editor.defaultFormatter": "vscode.html-language-features"

  },

  "json.maxItemsComputed": 1000000,

  "javascript.preferences.quoteStyle": "single",

  "[css]": {

    "editor.defaultFormatter": "aeschli.vscode-css-formatter"

  },

  "editor.codeActionsOnSave": {

    "source.fixAll.eslint": "explicit"

  },

  "eslint.format.enable": true,

  "[vue]": {

    "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"

  },

  "[typescript]": {

    "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"

  },

  "[tsx]": {

    "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"

  },

  "[python]": {

    "editor.formatOnType": true

  },

  "editor.defaultFormatter": "rvest.vs-code-prettier-eslint",

  "editor.formatOnPaste": false, // required

  "editor.formatOnType": false, // required

  "editor.formatOnSave": true, // optional

  "editor.formatOnSaveMode": "file", // required to format on save

  "files.autoSave": "onFocusChange",

  "vue.codeActions.enabled": false,

  "editor.inlineSuggest.showToolbar": "always",

  "[shellscript]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

  }

}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容