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?
IntelliJ IDEA brings powerful support for HTML that includes syntax and error highlighting, formatting according to the code style, structure validation, code completion, on-the-fly preview during a debugging session (Live Edit) or in the dedicated preview tab in the code editor, and much more.
By default, IntelliJ IDEA shows on-the-fly preview only for HTML and CSS code. To enable Live Edit in JavaScript, select the JavaScript, HTML and CSS option.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With