title: How can I run vscode with sudo on osx?
body: <p>[Edit] VSCode just makes this work these days...</p>
  <p><code>code ./.zshrc</code></p>
  <hr />
  <p>I want to use vs code to edit .bash_profile</p>
  <p>I setup the bash command (ala <a href="https://code.visualstudio.com/Docs/editor/setup" rel="nofollow noreferrer">https://code.visualstudio.com/Docs/editor/setup</a>)</p>
  <blockquote>
  <blockquote>
  <p>edit... command prompt setup is now here: <a href="https://code.visualstudio.com/docs/setup/mac" rel="nofollow noreferrer">https://code.visualstudio.com/docs/setup/mac</a></p>
  </blockquote>
  </blockquote>
  <p>if I type &quot;sudo code .bash_profile&quot; - I get &quot;sudo: code: command not found&quot;</p>
  <p>Thanks - Chad</p>