title: How to install Visual Studio Code's `code` command permanently?
body: <p>I just followed the top-voted answer <a href="https://stackoverflow.com/questions/29971053/how-to-open-visual-studio-code-from-the-command-line-on-osx">here</a> and successfully installed Visual Studio Code's <code>code</code> command in my terminal.</p>
  
  <p>However, the <code>code</code> command fails to launch Visual Studio Code every time after I restart my MacBook Pro.</p>
  
  <pre><code>~ code
  zsh: command not found: code
  </code></pre>
  
  <p>Is it possible to install <code>code</code> permanently so that I don't have to install it every time I turn on my MacBook Pro?</p>
  
  <pre><code>~ where code
  /usr/local/bin/code
  
  ~ ls -l /usr/local/bin/code
  lrwxr-xr-x  1 myName  admin  167 Aug  5 13:41 /usr/local/bin/code -&gt; /private/var/folders/bh/525lnbns1213cx2651s97my00000gp/T/AppTranslocation/EA379FC4-05D2-4739-BE49-1D8870E47B8A/d/Visual Studio Code.app/Contents/Resources/app/bin/code
  </code></pre>
  
  <p>I also find out that the folder <code>EA379FC4-05D2-4739-BE49-1D8870E47B8A</code> get deleted after I restart my laptop. </p>
  
  <p>This is the reason that I cannot run <code>code</code> after the laptop is restarted.</p>
  
  <p>Why is <code>code</code> installed in a temporary folder? </p>
  
  <p>My MacBook Pro's version is <em>macOS Sierra version 10.12.6</em></p>