解决VSCode格式化,单引号变双引号,自动加分号
注释这句代码后就不会在保存的时候自动把单引号变成双引号,也不会自动添加分号,在格式化的时候选择默认使用vetur{"[javascript]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[vue]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[html]":
·
注释这句代码后就不会在保存的时候自动把单引号变成双引号,也不会自动添加分号,在格式化的时候选择默认使用vetur
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.autoGuessEncoding": true,
"editor.quickSuggestions": null,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"files.associations": {
"*.vue": "html"
},
"settingsSync.ignoredSettings": [
"prettier.singleQuote",
"prettier.jsxSingleQuote"
],
"prettier.singleQuote": true,
"prettier.semi": true,
// "editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"settingsSync.ignoredExtensions": [],
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true,
"semi": false
}
}
}
更多推荐
已为社区贡献2条内容
所有评论(0)