Can IntelliJ IDEA properly format scala.html files

2019-04-30 02:55发布

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条回答
2楼-- · 2019-04-30 03:03

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.

查看更多
登录 后发表回答