美文网首页
VScode 修改一些插件默认配置

VScode 修改一些插件默认配置

作者: 没有六年级 | 来源:发表于2019-12-09 19:55 被阅读0次

主要插件:  beautify   eslint prettier-code formatter vetur 

{

    "files.exclude": {

        "**/.git": true,

        "**/.svn": true,

        "**/.hg": true,

        "**/CVS": true,

        "**/.DS_Store": true,

        "**/tmp": true,

        "**/node_modules": true,

        "**/bower_components": true,

        // "**/dist": true

      },

      "files.watcherExclude": {

          "**/.git/objects/**": true,

          "**/.git/subtree-cache/**": true,

          "**/node_modules/**": true,

          "**/tmp/**": true,

          "**/bower_components/**": true,

          "**/dist/**": true

      },

      // 窗口失去焦点自动保存

      "files.autoSave": "onFocusChange",

      // 编辑粘贴自动格式化

      "editor.formatOnPaste": false,

      // 字体大小

      "editor.fontSize": 14,

      // 行高

      "editor.lineHeight": 17,

      // 通过使用鼠标滚轮同时按住 Ctrl 可缩放编辑器的字体

      // 窗口失去焦点自动保存

      // 通过使用鼠标滚轮同时按住 Ctrl 可缩放编辑器的字体

      "editor.mouseWheelZoom": true,

      // 行太长自动换行

      "editor.wordWrap": "on",

    "workbench.iconTheme": "vscode-icons",

    "editor.tabSize": 2,

    "prettier.semi": false,

    "prettier.singleQuote": true,

    "[vue]": {

        "editor.defaultFormatter": "octref.vetur"

    },

    "vetur.format.defaultFormatter.js": "prettier-eslint",

    "vetur.format.defaultFormatterOptions": {

        "prettier": {

            "semi": false,

            "singleQuote": true,

            "eslintIntegration": true

        }

    },

    "[jsonc]": {

        "editor.defaultFormatter": "HookyQR.beautify"

    }

}

相关文章

网友评论

      本文标题:VScode 修改一些插件默认配置

      本文链接:https://www.haomeiwen.com/subject/msyigctx.html