# Do I need to configure anything in VSCode to switch to using v1.6.0?

**URL:** https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122
**Category:** VS Code
**Tags:** vscode, versions, configuration
**Created:** [March 28, 2021, 4:39pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122 "2021-03-28T16:39:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 4:39pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/1 "2021-03-28T16:39:39Z")

</div>

I’m new to the VSCode editor and have some very basic newbie questions:

1. I just upgraded from Julia 1.5.3 to 1.6.0. Do I need to configure something in VSCode to made the editor “switch” to the newer installation? In the [Getting Started guide](https://www.julia-vscode.org/docs/dev/gettingstarted/) it says:

> “If you have installed Julia into a standard location on Mac or Windows, or if the Julia binary is on your `PATH` , the Julia VS Code extension should automatically find your Julia installation and you should not need to configure anything.”

So based on this, I would guess the answer is yes?

1. How do I check what my current PATH variable is?

2. How can I see what Julia version VSCode is using?

Apologies for the newbie questions…

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 4:45pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/2 "2021-03-28T16:45:12Z")

</div>

![Unbenannt](https://global.discourse-cdn.com/julialang/original/3X/c/f/cf8666cf54624e04905d9aa365d916ce7b33c039.jpeg)

Does this help? It’s easier than a wall of text to explain 😉

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 4:50pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/3 "2021-03-28T16:50:56Z")

</div>

Thanks, I had checked Settings but the path doesn’t appear…

 ![julia_executable](https://global.discourse-cdn.com/julialang/original/3X/3/f/3f89fda1c36d690f95a81a2b50986aba3c22d42b.png)

I can still run Julia though, so it is set up somehow…

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 4:53pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/4 "2021-03-28T16:53:36Z")

</div>

I think, it looks at the default location, so it may find another installation, not necessarily the latest version.  
Just configure it to your needs, add the path to your v1.6.0.

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 5:50pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/5 "2021-03-28T17:50:19Z")

</div>

So in rereading a thread that I started back in December (when I first downloaded VSCode), I was reminded of the very helpful `versioninfo()` command, which produced this:

```julia
julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

```

So it looks like it’s running the latest version! This answers my question 3.

Regarding the path of my 1.6 install, I discovered that it is `C:\Users\Michael\AppData\Local\Programs\Julia-1.6.0`. I tried copying and pasting it into the text box for the Executable Path, but I got a pop-up messaging saying “Couldn’t start client Julia Language Server.” Weird…So for now, I’m going to leave the text box blank–VSCode seems to know when I download a new version and configures it automatically.

A couple lessons learned (mainly for my own reference, but in case it might help someone who stumbles across this post):

1. One way to find the default location of the your Julia installation is to find the installer in your Downloads folder and click Download again. It will display the file path ending in Julia-1.x.x. (Then click cancel, so as not to download Julia all over again.)

2. Julia may be installed in a _hidden_ folder! I was very confused as to why I didn’t see the AppData in my folder named Michael. To make hidden folders visible: Open the File Explorer, click the View tab, locate the checkbox for “Hidden items” on the right hand side of the pane, and make sure it is checked!!

---

<div class="post-metadata">

### Author: ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)
#### Post date: [March 28, 2021, 6:13pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/6 "2021-03-28T18:13:20Z")

</div>

> [@Michael\_Barmann](#):
>
> I tried copying and pasting it into the text box for the Executable Path, but I got a pop-up messaging saying “Couldn’t start client Julia Language Server.”

Because there is another folder inside `bin` that contains the actual executable. But yes, you should leave it blank and just add the latest version to your PATH environment variable.

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 6:23pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/7 "2021-03-28T18:23:27Z")

</div>

How exactly do I add the latest version to the PATH environment variable?

Do I click “Edit in settings.json” in the box where it says “Julia: Environment Path”? When click on the edit link, the json file that opens contains a line that just says  
`"julia.environmentPath": ""` Do I just type `C:\Users\Michael\AppData\Local\Programs\Julia-1.6.0` inside the last pair of quotes?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 6:32pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/8 "2021-03-28T18:32:31Z")

</div>

Adding something to PATH in Windows is just way more hassle than just put it into the VSCode config. But what is it all about? It’s running 1.6.0, so all is fine, isn’t it?

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [March 28, 2021, 6:32pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/9 "2021-03-28T18:32:51Z")

</div>

Try `C:\Users\Michael\AppData\Local\Programs\Julia-1.6.0\bin\julia.exe`.

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 6:49pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/10 "2021-03-28T18:49:03Z")

</div>

It is running 1.6.0 indeed. I thought it’d be good to learn how to manually specify the path inside of VSCode (just in case I need to use a different version of Julia for whatever reason…). But I may just leave things as they are for now, so as not to accidentally screw anything up 🙂

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 6:50pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/11 "2021-03-28T18:50:51Z")

</div>

So this would go in settings.json, i.e.

`"julia.environmentPath": "C:\Users\Michael\AppData\Local\Programs\Julia-1.6.0\bin\julia.exe" ` ?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 6:53pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/12 "2021-03-28T18:53:40Z")

</div>

I have in settings.json:  
`"julia.executablePath": "C:\\\\Users\\\\Oli\\\\AppData\\\\Local\\\\Programs\\\\Julia-1.6.0\\\\bin\\\\julia.exe"`  
4 times the backslash. I don’t know now if this is needed, but I let it for you to try it out 😉

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [March 28, 2021, 6:54pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/13 "2021-03-28T18:54:03Z")

</div>

Two backslashes should be enough 🙂

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 6:54pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/14 "2021-03-28T18:54:25Z")

</div>

Ok, if you insist… I try it … wait for it…

---

<div class="post-metadata">

### Author: ![Michael\_Barmann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/michael_barmann/32/20389_2.png) [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)
#### Post date: [March 28, 2021, 6:54pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/15 "2021-03-28T18:54:46Z")

</div>

Huh, interesting. Thanks!

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 6:55pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/16 "2021-03-28T18:55:23Z")

</div>

> [@pfitzseb](#):
>
> Two backslashes should be enough 🙂

Confirmed 🙂

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [March 28, 2021, 7:00pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/17 "2021-03-28T19:00:33Z")

</div>

In the settings editor it shows now only one , in settings.json it shows with double \. So at some time I copy/pasted the path with double backslash into the editor (this is what we have screenshoted above) and it automatically every backslash was again backslashed when saved into settings.json. So it came to the 4 backslashes. Good to know, and surely something i forgot when 1.7 comes out.

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [March 28, 2021, 8:55pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/18 "2021-03-28T20:55:56Z")

</div>

I pasted the path with single backslashes into the editor settings, and they ended up doubled in the json.

---

<div class="post-metadata">

### Author: ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)
#### Post date: [March 28, 2021, 11:08pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/19 "2021-03-28T23:08:04Z")

</div>

I personally think putting it in PATH is a better option rather than fixing it in vscode. This is because I work in tandem with vscode, vscode internal terminal, and a REPL running on an external terminal. It would suck to have vscode launch 1.6 (since the path is explicility specified) and version 1.x run when typing in `julia` in the terminal.

To answer your question directly, if you google “Environment Variable Windows”, you will get very explicit instructions. (For example: [Setting global environment variables on Windows – Shotgun Support (shotgunsoftware.com)](https://support.shotgunsoftware.com/hc/en-us/articles/114094235653-Setting-global-environment-variables-on-Windows#:~:text=Windows%207,to%20edit%2C%20and%20click%20Edit.). I would advise you to play around here and see what is inside the variable `PATH`.

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [December 29, 2021, 9:34pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122/20 "2021-12-29T21:34:20Z")

</div>

8 posts were split to a new topic: [Using julia.environmentPath to configure environments in VSCode](https://discourse.julialang.org/t/using-julia-environmentpath-to-configure-environments-in-vscode/73789)
