我已经在 Visual Studio 代码编辑器中使用 Prettier 扩展很长时间了,但最近我一直在使用 Typescript 编写 React。所以我需要配置 Prettier 来格式化.tsx
files.
使用以下内容编辑设置settings.json
VScode 的
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)