Now I have multiple version of nim on my windows machine and I am able to switch between them using choosenim or hadwritten bat files modifiying PATH. This works.
However I wanted to switch nim version for VSCode extension which I am using and I was not able to find out how to do it. Any ideas?
Howdy neighbor!
First, I would recommend you use this extension instead since it's actively maintained: https://marketplace.visualstudio.com/items?itemName=nimsaem.nimvscode
From my understanding, you would use the PATH environment variable (as it exists when you start VSCode) to determine which Nim toolset to use.
The extension prioritizes:
The full algorithm can be found here: https://github.com/saem/vscode-nim/blob/main/src/tools/nimBinTools.nim#L10
Hope that helps!
your suggestion worked.
I also needed to call nimble setup to setup paths for nimsuggest and nim compiler itself.