我想使用Code Runner扩展名在vscode中快速运行活动的python文件。
当我运行它时,我得到消息...
找不到Python,但可以从Microsoft Store安装它:https://go.microsoft.com/fwlink?linkID=2082640
我希望Code Runner使用活动的vscdode Python解释器。怎么样?
最佳答案
这花了一些时间才能找到,所以我认为我将在此处发布问答以供将来的搜索者使用。
从this github post。
打开settings.json
文件并添加此设置。
"code-runner.executorMap": {
"python":"$pythonPath $fullFileName",
}
👍
关于python - 如何在Visual Studio Code中获得Code Runner扩展以使用所选的Python解释器?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57541747/