title: How do i make Visual Studio Code save changes in files before commit?
body: <p>I have often made a commit, and then noticed that one of the files i was working on wasn't saved, and therefore were left out of the commit.</p>
  
  <p>I have my current project set up with Husky, and have automated things like testing / linting before commit or push. </p>
  
  <p>Here is the current Husky setup, just to give an idea of where a script could fit in.</p>
  
  <pre class="lang-js prettyprint-override"><code> "husky": {
      "hooks": {
        "pre-commit": "pretty-quick --staged &amp;&amp; ng lint",
        "pre-push": "ng test --browsers ChromeHeadless --watch=false &amp;&amp; testcafe -c 4 chrome:headless test"
      }
    }
  </code></pre>
  
  <p><strong>Is there any way to make visual studio or Husky save all open files pre-commit?</strong></p>