从 IntelliJ 代码格式中排除页面中的部分
有没有可能的方法让 IntelliJ 不格式化页面的一部分?
我正在使用 XHTML 和 Facelets,但这可以适用于任何页面。我也很好奇是否可以用代码来做到这一点。
谢谢。
Is there any possible way to have IntelliJ -not- format part of a page?
I'm using XHTML and facelets but this could apply to any page. I'm also curious if it's possible to do that in code.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 IDEA 13 开始,可以使用
抑制格式并重新激活
内部注释
。但您需要先在“设置”->“设置”中启用该功能。代码风格->一般->格式化控制
Since IDEA 13 it is possible to suppress formatting with
and reactivate with
inside comments.
But you need to enable that first in Settings -> Code Style -> General -> Formatter Control
显然这在 IntelliJ 9 中是不可能的。
Apparently this is not possible with IntelliJ 9.