VS Code 配置 Python 开发环境

VS Code 配置 Python 开发环境

必备插件

  • Python Extension
  • Code Runner

配置 Code Runner

you have to enter your virtualenv path or you could use.

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

一般情况下,我使用 python -m venv .venv 创建虚拟环境。VS Code 可以和 Python 的 venv 很好的兼容。

Reference:

猜你喜欢

转载自www.cnblogs.com/nobilis/p/11955838.html