title: Auto-saving files upon changes with Visual Studio Code
body: <p>I have used <a href="https://en.wikipedia.org/wiki/JetBrains#WebStorm" rel="noreferrer">WebStorm</a> from JetBrains for almost four years now. It's a fantastic IDE for many reasons, but one of the best features is that it saves versions of files outside of version control. So if you accidentally delete files or lose files before they are saved by your version control system, WebStorm has a copy of them and there are visual diff tools to use. This feature has saved me on more than one occasion.</p>
  <p>For Visual Studio Code, is there some feature/plugin that will auto-save copies of files as they change? Will Visual Studio Code save the files to some central location, or perhaps in the <code>.vscode</code> folder in the local workspace?</p>
  <p>The feature in WebStorm is available from <em>Local History</em> → <em>Show History</em> from a folder or file. Here is an article about it:
  <em><a href="https://blog.jetbrains.com/phpstorm/2012/10/using-local-history-for-code-changes-tracking/" rel="noreferrer">Using Local History for code changes tracking</a></em></p>
  <p>The view looks like:</p>
  <p><a href="https://i.stack.imgur.com/2xvdi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2xvdi.png" alt="Enter image description here" /></a></p>