取消vscode 保存句尾自动补全分号 “;”

2023-04-07 12:38:33

问题描述:vscode 保存时自动补全 分号,seetings.json里面设置了`

“prettier”: {
“semi”: false,
“singleQuote”: true,
“disableLanguages”: [
“vue”
]
}`
结果发现不起效果
解决办法:在项目根目录新增一个.prettierrc.js文件,配置

module.exports = {
  singleQuote: true
};

在这里插入图片描述

  • 作者:weixin_43179300
  • 原文链接:https://blog.csdn.net/weixin_43179300/article/details/107917767
    更新时间:2023-04-07 12:38:33