title: Run intellij scala formatter from the command line
body: <p>I'm trying to add a git hook to format files automatically using IntelliJ formatter. It works well using <a href="https://www.jetbrains.com/help/idea/command-line-formatter.html" rel="nofollow noreferrer">https://www.jetbrains.com/help/idea/command-line-formatter.html</a> but it doesn't work with scala files </p>
  
  <pre><code>Formatting /Users/me/IdeaProjects/repo/MyFile.scala...Skipped, not supported.
  </code></pre>
  
  <p>I usually use the git client in intellij and I check <code>Reformat code</code> but I'm trying to find a solution that is agnostic of the git client. Is there a way to use intellij scala formatter from the command line?</p>