vscode保存文件的时候,自动格式化代码,双引号变单引号,适应模版字符串
程序员文章站
2022-07-05 16:34:49
...
安装eslint依赖之后将以下代码复制到settings.json中保存
{
"window.zoomLevel": 0,
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": false,
"editor.minimap.enabled": false,
"breadcrumbs.enabled": true,
"editor.fontSize": 18,
"editor.tabSize": 2,
"cssrem.rootFontSize": 12,
"explorer.confirmDelete": false,
"editor.wordWrap": "on",
"liveServer.settings.NoBrowser": true,
"liveServer.settings.donotShowInfoMsg": true,
"files.trimTrailingWhitespace": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"liveServer.settings.ignoreFiles": [
".vscode/**",
"**/*.scss",
"**/*.sass",
"**/*.ts"
],
"liveServer.settings.mount": [
],
"vetur.validation.template": false
}