简体   繁体   中英

How do I set standard Interpreter path for python in vscode config json?

I use fish shell and I just want to when I open the vscode it automatically selects the virtual environment that was activated in virtual fish.

I want to have something like this:

"python.interpreterPath": "${VIRTUAL_ENV}/bin/python"

(this variable actually doesn't exists, I just put it as an example)

Try: Ctrl/Cmd+Shift+P : Python: Select Interpreter . It may suggest the correct path by itself, else you have to enter the path to the python executable you want to use by yourself.

Search in the fish documentation wether there is support for automatically passing the right interpreter path to VS-Code.

But that's the way how to do it manually at least.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM