Vscode-code-runner: code-runner.executorMap support for env variables ${env:CONDA_DEFAULT_ENV}

Created on 14 Mar 2018  ·  5Comments  ·  Source: formulahendry/vscode-code-runner

Can you please advise how / or add the feature to incorporate the ${env:CONDA_DEFAULT_ENV} variable so when selecting the environment from vscode for python the runner will open the correct python version.

Most helpful comment

Do you select the path by Python: Select Interpreter? If yes, you could use below setting:

"code-runner.executorMap": {
"python":"$pythonPath $fullFileName",
}

All 5 comments

Do you select the path by Python: Select Interpreter? If yes, you could use below setting:

"code-runner.executorMap": {
"python":"$pythonPath $fullFileName",
}

I think it would be a great feature if the code-runner would recognize the environment automatically which is set in vscode.

I agree. Being able to read the .env would be great.

Please implement :)

Hi, can i use $selecetedText in code-runner.executorMap!
It seems that it is acknowledged as empty!

Any way to solve this?

Was this page helpful?
0 / 5 - 0 ratings