1.在vsCode中安装prettier插件
2.在vsCode设置中进入settings.json配置文件
3.在settings.json进行配置
"editor.formatOnSave": true, // 配置保存是否自动对齐
"prettier.semi": true, // 是否带分号
"prettier.singleQuote": true, // 是否为单引号
1.在vsCode中安装prettier插件
2.在vsCode设置中进入settings.json配置文件
3.在settings.json进行配置
"editor.formatOnSave": true, // 配置保存是否自动对齐
"prettier.semi": true, // 是否带分号
"prettier.singleQuote": true, // 是否为单引号
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。