IntelliJ 格式 XML,在自结束标记中斜线之前有一个空格

问题描述 投票:0回答:1
有没有办法在 IntelliJ 代码样式格式设置中的自结束标签中仅在斜线之前添加空格(例如

<tag att='foo' />

)?在编辑器中 |代码风格| XML |其他只有一个选项可以添加空格
在标签名称之后,但它也会向<component ></component >
添加空格,这是我不想要的。我想要 
<component></component>
,但是 
<component />
 而不是 
<component/>

intellij-idea formatter xml-formatting
1个回答
0
投票
此设置称为

In empty tag

enter image description here
    

© www.soinside.com 2019 - 2024. All rights reserved.