Can IntelliJ IDEA properly format scala.html files and how do I enable it to do so?

匿名 (未验证) 提交于 2019-12-03 08:48:34

问题:

IntelliJ IDEA 12 Ultimate and CE format the following line in my main.scala.html file (in a Play application)

<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"> 

As

<link rel="stylesheet" media="screen" href="@routes.Assets.at(" stylesheets /main.css")"> 

Yes. really. It breaks up a quoted string. I understand it thinks the string ends after at(, but this is an incorrect interpretation of the code.

Can IntelliJ correctly format this code? How do I enable/use that formatting?

回答1:

It's an open issue: http://youtrack.jetbrains.com/issue/SCL-5570

This answer needed more characters to meet the minimum, so here they are.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!