title: VS Code Will Not Save Changes - Mac
body: <p>I know this question has been asked before, but none of the advised solutions have worked for me. I am on a Mac and trying to save changes to a VS Code file. When I press save, it says </p>
  
  <blockquote>
    <p>Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.</p>
  </blockquote>
  
  <p>When I choose to "Retry as Sudo" I enter my password and it says </p>
  
  <blockquote>
    <p>Failed to save... Error using --file-write: EPERM: operation not permitted</p>
  </blockquote>
  
  <p>I have tried a couple of different things to open VS Code with admin privileges, including running it from the terminal with the command:</p>
  
  <blockquote>
    <p>sudo open /Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron</p>
  </blockquote>
  
  <p>and manually adding VS Code to my path using the commands </p>
  
  <pre><code>cat &lt;&lt; EOF &gt;&gt; ~/.bash_profile
  # Add Visual Studio Code (code)
  export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
  EOF
  </code></pre>
  
  <p>I have yet to find anything that affects the failed to save error, and if anyone has any suggestions, they would be greatly appreciated!</p>