title: Configuring the PATH variable in VS Code
body: <p>I am using Microsoft Visual Studio Code 1.30.2 on macOS Mojave 10.14.3. In the settings of VS Code, I have required it to use the external <code>Terminal.app</code> application on macOS. I also have an Anaconda distribution of Python installed.</p>
  
  <p>Note that the PATH variable here reads:</p>
  
  <pre><code>~ » $PATH
  bash: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/anaconda3/bin:/anaconda3/condabin: No such file or directory
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PNwdB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PNwdB.png" alt="VS Code"></a></p>
  
  <p>The order above is different from what I get if I fire up the regular Terminal app and get the PATH.</p>
  
  <pre><code>~ » $PATH
  -bash: /anaconda3/bin:/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin: No such file or directory
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/IiBJ4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IiBJ4.png" alt="Terminal.app"></a> </p>
  
  <p>What this effectively does is switch the versions of Python when I type in <code>python</code> in the two cases. In the regular terminal, I get Python 3 right away, whereas in VS Code, I am faced with Python 2.</p>
  
  <p>How do I change the PATH in VS Code so that whenever I type the words <code>python</code>, I am always given Python 3 instead of 2?</p>
  
  <hr>
  
  <p><strong>P.S.</strong> Please note that while editing Python code in VS Code, I can always select which interpreter I want to use, but that does not change the situation with the terminal underneath.</p>