title: How do you auto remove unused imports - Visual Studio Code
body: <p>I'm using Visual Studio Code to create a game in Unity so I'm programming in C#.  I'd like to know how to:</p>
  <p>A) Force the editor to remove unused imports when I save.
  B) Remove all unused imports, project-wide</p>
  <p>I see allusions to this snippet when I google around:</p>
  <pre><code>&quot;editor.codeActionsOnSave&quot;: {
      &quot;source.fixAll&quot;: true,
      &quot;source.organizeImports&quot;: true
  }
  </code></pre>
  <p>Neither one does anything for me.</p>