[英]Prettier Adds Space Before and After Angle Brackets of Tags in JSX in VS Code
I am trying to prettify a jsx file after save but prettier adding space between <>
. 保存后我想美化一个jsx文件,但更漂亮地在
<>
之间添加空格。 for example the <p>
changes to < p >
and this is raising issue on jsx
例如
<p>
更改为< p >
,这在jsx
上引起了问题
const elem = <h1> Hello React </h1>;
console.log(elem);
to 至
const elem = < h1 > Hello React < /h1>;
console.log(elem);
can you please let me know how to fix this 你能让我知道如何解决这个问题吗
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.