【发布时间】:2020-06-10 05:48:42
【问题描述】:
我正在使用 PhpStorm,我正在根据自己的喜好配置自动重新格式化设置。
但是我遇到了一个问题。当我重新格式化它时,它会在</p> 之前自动换行,这很好。现在的问题是它没有在<p> 之后添加换行符,我喜欢这种情况发生。
这是一个例子:
重构前:
<p>A lot of text is placed here and when there is a lot of text.
It will go to the next line</p>
重构后:
<p>A lot of text is placed here and when there is a lot of text.
It will go to the next line
</p>
重构后我想要什么:
<p>
A lot of text is placed here and when there is a lot of text.
It will go to the next line
</p>
问题:当我在 PhpStorm 中使用自动重构时,我需要更改哪些设置才能获得我想要的结果?
【问题讨论】:
标签: phpstorm settings automated-refactoring