# Set default julia version for a given folder (in VS Code)

**URL:** https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656
**Category:** New to Julia
**Tags:** juliaup
**Created:** [May 3, 2025, 12:34pm UTC](https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656 "2025-05-03T12:34:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JADekker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jadekker/32/210281_2.png) [@JADekker](https://discourse.julialang.org/u/JADekker)
#### Post date: [May 3, 2025, 12:34pm UTC](https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656/1 "2025-05-03T12:34:19Z")

</div>

Hi, for a given project I’m restricted to a given version of julia. However, I’d like to work with the release version of julia when I’m just tinkering around with some julia code. I’ve tried juliaup to `override` the channel for the project to be on 1.10.4, but when I click the play button in VSCode to launch the code, it still launches in 1.11.5 (release). I’m on MacOS if relevant, and I don’t think I’ve ever set `JULIAUP_CHANNEL`, so if I’m reading the section on Overrides here ([juliaup/README.md at main · JuliaLang/juliaup · GitHub](https://github.com/JuliaLang/juliaup/blob/main/README.md)) correctly, it should use the directory override.

What am I doing wrong? (And how can I check if I’ve accidentally manually specified `JULIAUP_CHANNEL` at some point in the past?)

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [May 3, 2025, 2:33pm UTC](https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656/2 "2025-05-03T14:33:48Z")

</div>

> [@JADekker](#):
>
> when I click the play button in VSCode

Just don’t do that. Launch a terminal, and launch Julia from the terminal, and launch your script using the `include` function.

---

<div class="post-metadata">

### Author: ![JADekker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jadekker/32/210281_2.png) [@JADekker](https://discourse.julialang.org/u/JADekker)
#### Post date: [May 3, 2025, 3:11pm UTC](https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656/3 "2025-05-03T15:11:16Z")

</div>

Thank you for your response. I agree that is a perfectly good way to do it. However, when working on my code, I like to sometimes just make a quick tweak to a function and then hit play, rather than go back to my terminal to re-run the code, so I was hoping to find a way that allows me to still do this (but I’ll certain use the terminal if the other way is not possible!)

---

<div class="post-metadata">

### Author: ![moble](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/moble/32/23535_2.png) [@moble](https://discourse.julialang.org/u/moble)
#### Post date: [May 6, 2025, 10:27pm UTC](https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656/4 "2025-05-06T22:27:30Z")

</div>

Assuming you’re using `juliaup`, you get the full path to the executable with, e.g.,

```bash
julia +1.10.4 -e 'println(joinpath(Sys.BINDIR, "julia"))'

```

Then, in that project’s `.vscode/settings.json`, you can add the setting

```julia
{
  "julia.executablePath": "/path/to/your/juliaup/julia-1.10.4+xxx/bin/julia"
}

```

I think that should do what you’re asking for.

---

<div class="post-metadata">

### Author: ![JADekker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jadekker/32/210281_2.png) [@JADekker](https://discourse.julialang.org/u/JADekker)
#### Post date: [May 7, 2025, 7:35am UTC](https://discourse.julialang.org/t/set-default-julia-version-for-a-given-folder-in-vs-code/128656/5 "2025-05-07T07:35:58Z")

</div>

Yes, that works! Thanks!
