title: How to run `go fmt` on save, in Visual Studio Code?
body: <p>How to make Visual Studio Code (or Go Programming Language Extension) to run <code>go fmt</code> (or other tools/commands) on save? Even auto save?</p>
  <p><strong>Update:</strong>
  It is working now perfectly inside VSCode, at this time; just need to add some config files inside <em>.vscode</em> directory (I use <a href="https://github.com/dc0d/plumber/tree/master/.vscode" rel="noreferrer">these</a>).</p>
  <p><strong>Update 2019:</strong>
  This question is old. The VSCode Go extension has all you need to develop in Go, now.</p>
  <p><strong>Last Update 2019</strong>
  BTW It worth mentioning that right above the package declaration inside your test files appears a <em>run package tests</em>. If you click it, you can see your code coverage of your code. The covered and not-covered parts are highlighted in different colors.</p>
  <p><strong>Update 2020</strong>
  And now, the Go Extension for VSCode, is under the supervision of Go Team! </p>
  <p><a href="https://i.stack.imgur.com/fiXDF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fiXDF.png" alt="enter image description here" /></a></p>