2019-12-23-vscode 用户配置

{

    "workbench.startupEditor": "welcomePage",

    "vsicons.dontShowNewVersionMessage": true,

    "files.autoSave": "onFocusChange",

    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",

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

    "editor.formatOnPaste": false,

    "editor.formatOnType": false,

    "[html]": {

        "editor.defaultFormatter": "febean.vue-format"

    },

    "explorer.confirmDelete": false,

    "terminal.integrated.cursorBlinking": true,

    "terminal.integrated.cursorStyle": "line",

    "terminal.integrated.rightClickBehavior": "default",

    // #每次保存的时候自动格式化 

    "editor.formatOnSave": false,

    // #每次保存的时候将代码按eslint格式进行修复

    "eslint.autoFixOnSave": true,

    // 添加 vue 支持

    "eslint.validate": [

        "javascript",

        "javascriptreact",

        {

            "language": "vue",

            "autoFix": true

        }

    ],

    //  #去掉代码结尾的分号 

    "prettier.semi": true,

    //  #使用带引号替代双引号 

    "prettier.singleQuote": true,

    //  #让函数(名)和后面的括号之间加个空格

    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,

    // #这个按用户自身习惯选择 

    "vetur.format.defaultFormatter.html": "none",

    // #让vue中的js按编辑器自带的ts格式进行格式化 

    "vetur.format.defaultFormatter.js": "none",

    "vetur.format.defaultFormatterOptions": {

        "js-beautify-html": {

            "wrap_attributes": "force-aligned"

            // #vue组件中html代码格式化样式

        }

    },

    // 格式化stylus, 需安装Manta's Stylus Supremacy插件

    "stylusSupremacy.insertColons": false, // 是否插入冒号

    "stylusSupremacy.insertSemicolons": false, // 是否插入分好

    "stylusSupremacy.insertBraces": false, // 是否插入大括号

    "stylusSupremacy.insertNewLineAroundImports": true, // import之后是否换行

    "stylusSupremacy.insertNewLineAroundBlocks": false,

    "editor.detectIndentation": false,

    "vetur.format.options.tabSize": 4,

    "[css]": {

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

    },

    "terminal.integrated.rendererType": "dom",

    "eslint.alwaysShowStatus": true,

    "[vue]": {

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

    },

    "vetur.validation.template": false,

    "[javascript]": {

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

    },

    "editor.codeActionsOnSave": {

        "source.fixAll.eslint": true

    },

    "editor.suggestSelection": "first",

    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",

    "explorer.confirmDragAndDrop": false // 两个选择器中是否换行

}

你可能感兴趣的:(2019-12-23-vscode 用户配置)