PhpStorm:在重新格式化代码中的<p>之后添加换行符

时间:2020-02-26 11:05:12

标签: phpstorm settings automated-refactoring

我正在使用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中使用自动重构时,需要更改哪些设置才能获得所需的结果?

1 个答案:

答案 0 :(得分:0)

当前无法使用,请投票给WEB-310,以通知该功能的任何进展

相关问题