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

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) 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?)

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

1 Like

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!)