vue prettier 格式化 时 不添加 空格
你可以通过在 Prettier 配置文件中设置 vueIndentScriptAndStyle: false 来禁用在 .vue 文件中的脚本和样式标签中添加空格。例如:
{
"vueIndentScriptAndStyle": false,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
这将在 .vue 文件中禁用添加空格,并设置其他常见的 Prettier 配置。
原文地址: https://www.cveoy.top/t/topic/bgm5 著作权归作者所有。请勿转载和采集!