修改vscode中emmet中jsx和tsx语法中className的扩展符号从单引号到双引号 - HTML代码补全 - 单引号双引号
效果图
实现步骤
- 文件 > 首选项 > 设置
- 搜索“”
- 在settings.json中修改,增加
"emmet.syntaxProfiles": {"html": {"attr_quotes": "single"},"jsx": {"attr_quotes": "double","self_closing_tag": true},"tsx": {"attr_quotes": "double","self_closing_tag": true} }
- 保存
- ok