VScode插件及配置

windows版:

插件:
在这里插入图片描述
在这里插入图片描述
配置:
{
“explorer.confirmDelete”: false,
“git.autofetch”: true,
“eslint.autoFixOnSave”: true,
“editor.tabSize”: 2,
“eslint.validate”: [
“javascript”,
“javascriptreact”,
{
“language”: “html”,
“autoFix”: true
},
{
“language”: “vue”,
“autoFix”: true
}
],
// “beautify.config”: {
// “brace_style”: “collapse,preserve-inline”
// },
“brace_style”: “collapse,preserve-inline”,
“files.autoSave”: “off”,
“extensions.ignoreRecommendations”: true,
“team.showWelcomeMessage”: false,
“explorer.confirmDragAndDrop”: false,
“prettier.singleQuote”: true,
“prettier.semi”: false,
“vetur.format.defaultFormatter.html”: “js-beautify-html”,
“vetur.format.defaultFormatter.vue”: “vscode-typescript”,
“vetur.format.defaultFormatter.js”: “vscode-typescript”,
“vetur.format.defaultFormatterOptions”: {
“wrap_attributes”: “force-aligned”
},
“files.associations”: {
.gql": “javascript”
},
“[vue]”: {},
“debug.allowBreakpointsEverywhere”: true,
“editor.wordWrap”: “on”,
“search.exclude”: {
/node_modules/”: true,
/bower_components/”: true,
/image/”: true,
"**/
.xml”: true,
/.history/”:true,
/nbproject/”:true,
/vscode/”:true
},
“workbench.startupEditor”: “newUntitledFile”,
“window.zoomLevel”: 0,
“javascript.validate.enable”: false,
“workbench.editor.enablePreview”: false
}

Mac版:
Mac版的vs code更加简单便捷,新下载的有格式化等操作,以下为新增的一些个人习惯。
插件:只下载了Eslint和Vetur;
配置:

{
    "editor.formatOnSave": true, //保存自动格式化
    "eslint.autoFixOnSave": true, //自动保存
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "html",
            "autoFix": true
        },
        {
            "language": "vue",
            "autoFix": true
        }
    ],
    "workbench.startupEditor": "newUntitledFile", //vscode打开新页面
    "search.exclude": { //搜索过滤文件
        "/node_modules/": true,
        "/bower_components/": true,
        "/image/": true,
        "**/.xml": true,
        "/.history/": true,
        "/nbproject/": true,
        "/vscode/": true
    },
    "window.zoomLevel": 1, //窗口缩放比例
    //html标签属性不换行 start
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "auto", //html标签属性不换行
        }
    },
    //html标签属性不换行 end
    "editor.wordWrap": "on" //超过屏幕视图换行
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值