title: Run / Open VSCode from Mac Terminal
body: <p>I'd like to run / open Visual Studio Code from the Mac OSX Terminal by running this command <code>code .</code>.  I found instructions here:</p>
  
  <p><a href="https://code.visualstudio.com/Docs/setup" rel="noreferrer">https://code.visualstudio.com/Docs/setup</a></p>
  
  <p>Apparently I need to include this in my <code>.bashrc</code> file, so I did, but to no avail.</p>
  
  <pre><code>code () {
      if [[ $# = 0 ]]
      then
          open -a "Visual Studio Code"
      else
          [[ $1 = /* ]] &amp;&amp; F="$1" || F="$PWD/${1#./}"
          open -a "Visual Studio Code" --args "$F"
      fi
  }
  </code></pre>
  
  <p>I edited the <code>.bashrc</code> file here:</p>
  
  <p><code>~/.bashrc</code> which points to <code>/Users/username/.bashrc</code></p>
  
  <p>Which <code>.bashrc</code> should I be editing?</p>