【问题标题】:PhpStorm: add break-line after <p> in reformat codePhpStorm:在重新格式化代码中的 <p> 之后添加换行符
【发布时间】:2020-06-10 05:48:42
【问题描述】:

我正在使用 PhpStorm,我正在根据自己的喜好配置自动重新格式化设置。

但是我遇到了一个问题。当我重新格式化它时,它会在&lt;/p&gt; 之前自动换行,这很好。现在的问题是它没有在&lt;p&gt; 之后添加换行符,我喜欢这种情况发生。

这是一个例子:

重构前:

<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


    【解决方案1】:

    目前不可能,请投票给WEB-310,以便在此功能的任何进展上得到通知

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-14
      • 2015-12-15
      • 1970-01-01
      • 2014-11-02
      • 2014-03-28
      • 2016-10-16
      相关资源
      最近更新 更多