Search code examples
scalaplayframeworkintellij-14

How to turn off auto-formatting in IntelliJ 14 for play routing files?


Everytime I press return to enter a new route into the file it auto-reformats the entire file which I do not want. I cannot find the setting to turn off the auto-formatting, is there one?


Solution

  • I don't think its possible right now, there are a number of issues related to this (especially for scala formatting) eg. https://youtrack.jetbrains.com/issue/IDEA-56995 or https://youtrack.jetbrains.com/issue/SCL-6702.

    Currently I'm on Intellij 14 and formatting toggle with '@formatter:off' works only for Java source and doesn't work for configs, Scala etc.