简体   繁体   English

在PHPStorm中使用“重新格式化代码”时,如何停止行内HTML注释进入下一行?

[英]How to stop inline HTML comments from going to the next line when using Reformat Code in PHPStorm?

I am using PHPStorm IDE and in the meanwhile I also use HTML comments for the ending tags. 我正在使用PHPStorm IDE,与此同时,我也将HTML注释用于结束标记。 I use Reformat Code by cmd+alt+L keys a lot. 我经常通过cmd+alt+L键使用“重新格式化代码”。 I am aware that the Code Style in Preference will change the code style when using Reformat Code. 我知道使用“重新格式化代码”时,“首选项中的代码样式”将更改代码样式。 However, it seems that I cannot change the HTML comments which are in the same line as HTML ending tags from going to the next line when I use Reformat Code feature which is annoying. 但是,当我使用烦人的“重新格式化代码”功能时,似乎无法将与HTML结束标记在同一行中的HTML注释从下一行更改为下一行。 How can I change that to have the HTML comments inline with HTML ending tags when using Reformat Code feature? 使用重新格式化代码功能时,如何更改以使HTML注释与HTML结束标记内联?

带有注释的内联HTML结束标记

AFAIK there is no such option. AFAIK没有此类选项。

https://youtrack.jetbrains.com/issue/WEB-5070 -- star/vote/comment to get notified on progress. https://youtrack.jetbrains.com/issue/WEB-5070-star / vote / comment可获得进度通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM