首页 > 其他 > 详细

vscode 个人配置

时间:2020-07-18 15:30:04      阅读:287      评论:0      收藏:0      [点我收藏+]
setting。json
{
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "standard.enable": true,
    "standard.autoFixOnSave": true,
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue"
    ],
    "editor.formatOnSave": false,
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            "semi": false,
            "singleQuote": true
        },
        "prettyhtml": {
            "printWidth": 140,
            "wrapAttributes": false
        }
    },
    // "[javascript]": {
    //     "editor.formatOnSave": true
    // },
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[jsonc]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur",
        "editor.formatOnSave": true
    },
    //  #去掉代码结尾的分号 
    "prettier.semi": false,
    //  #使用带引号替代双引号 
    "prettier.singleQuote": true,
    "eslint.codeActionsOnSave.mode": "problems",
    "editor.codeActionsOnSave": {
        // For ESLint
        "source.fixAll.eslint": true
    },
    "editor.formatOnPaste": false,
    "vsicons.dontShowNewVersionMessage": true,
    "diffEditor.ignoreTrimWhitespace": false,
    // 顶部注释模板,可定义作者、时间等
    "fileheader.Author": "zhaohui",
    "fileheader.LastModifiedBy": "zhaohui",
    "workbench.iconTheme": "material-icon-theme",
    "material-icon-theme.folders.theme": "specific",
    "material-icon-theme.activeIconPack": "vue",
    "material-icon-theme.hidesExplorerArrows": false,
    "material-icon-theme.folders.color": "#90a4ae",
    "material-icon-theme.saturation": null
}

  个人喜好插件

技术分享图片

 

 技术分享图片

 

 还有一个电脑插件(utools)=》一键召唤中英文翻译

谷歌插件

技术分享图片

 

vscode 个人配置

原文:https://www.cnblogs.com/followme789/p/13335622.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!