vscode setting.json

{

// vscode默认启用了根据文件类型自动设置tabsize的选项

"editor.detectIndentation": false,

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

"typescript.locale": "zh-CN",

"editor.quickSuggestions": {

"strings": true

},

"javascript.format.insertSpaceBeforeFunctionParenthesis": true, //让函数(名)和后面的括号之间加个空格

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

"element-helper.version": "2.5",

"editor.tabSize": 2, // tab空格

"editor.formatOnSave": true, // 每次保存的时候自动格式化

"eslint.autoFixOnSave": true,

"extensions.ignoreRecommendations": true,

"eslint.validate": [

"javascript",

"javascriptreact",

{

"language": "html",

"autoFix": true

},

{

"language": "vue",

"autoFix": true

}

],

"eslint.options": {

"extensions": [

".js",

".vue",

".ts"

]

},

"eslint.enable": true,

"eslint.run": "onType",

"[javascript]": {

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

},

"files.associations": {

"*.cjson": "jsonc",

"*.wxss": "css",

"*.wxs": "javascript"

},

"emmet.includeLanguages": {

"wxml": "html"

},

"minapp-vscode.disableAutoConfig": true,

"vsicons.dontShowNewVersionMessage": true,

"prettier.disableLanguages": [

"vue"

],

"prettier.eslintIntegration": true, // 让prettier使用eslint的代码格式进行校验

"prettier.semi": false, // 去掉代码结尾的分号

"prettier.singleQuote": true, // 使用单引号替代双引号

"vetur.format.defaultFormatter.stylus": "stylus-supremacy",

"vetur.format.defaultFormatter.html": "js-beautify-html",

"vetur.format.defaultFormatter.js": "vscode-typescript", // #让vue中的js按编辑器自带的ts格式进行格式化

"vetur.format.defaultFormatterOptions": {

"js-beautify-html": { // #vue组件中html代码格式化样式

"wrap_attributes": "force", // "aligned-multiple" , "force-aligned" , //属性强制折行对齐

"end_with_newline": true

},

},

"vetur.validation.template": false,

"editor.fontSize": 16,

"workbench.settings.useSplitJSON": true,

"diffEditor.ignoreTrimWhitespace": false,

"search.exclude": {

"**/node_modules": true,

"**/bower_components": true,

"**/dist": true

},

"eslint.migration.2_x": "off",

"json.schemas": [],

"launch": {},

"iceworks.materialSources": [],

"iceworks.workspace": "/Users/lihao392/Documents/code",

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值