title: Editorconfig: How to autofix all files in a project
body: <p>Given I have an .editorconfig file that dictates consistent indent, line endings, trailing whitespace, etc. </p>
  
  <pre><code># http://editorconfig.org
  root = true
  
  [*]
  indent_style = space
  indent_size = 2
  end_of_line = lf
  charset = utf-8
  trim_trailing_whitespace = true
  insert_final_newline = true
  </code></pre>
  
  <p>As a Developer, I want to fix all files consistently with a command line tool that understands .editorconfig files. I want to avoid tedious tasks, for instance, manually open and change files.</p>
  
  <p>I imagine if there was a command like for example:</p>
  
  <pre><code>editorconfix.sh --autofix .
  </code></pre>
  
  <p>Which tools exist for this purpose? What scripts do you use?</p>