问题
I'd like quickly run the active python file in vscode using the Code Runner extension.
When I run it I get the message...
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
I would like Code Runner to use the active vscdode Python Interpreter. How?
回答1:
This took some time to find so I thought I'd post the Q & A here for future searchers.
From this github post.
Open your settings.json
file and add this setting.
"code-runner.executorMap": {
"python":"$pythonPath $fullFileName",
}
👍
来源:https://stackoverflow.com/questions/57541747/how-do-you-get-the-code-runner-extension-in-visual-studio-code-to-use-the-select