VSCode配置python开发环境

1. 安装python;

2. 下载VSCode:https://code.visualstudio.com

3. 安装简体中文;

VSCode配置python开发环境_第1张图片
安装简体中文步骤

4. 安装Python扩展;

VSCode配置python开发环境_第2张图片
安装Python扩展步骤

5. 新建文件夹,新建Python文件,比如:

VSCode配置python开发环境_第3张图片
新建配置文件

6. launch.json文件:

{ "version": "0.2.0", "configurations": [ { "name": "Python: Current File (Integrated Terminal)", "type": "python", "request": "launch", "program": "${file}", "console": "integratedTerminal" } ] }

7. setting.json文件:

{  "python.pythonPath": "D:\\PythonAPP\\Python3.6\\python.exe",  "python.linting.pylintEnabled": false,  "python.linting.pep8Enabled": true,  "python.linting.lintOnSave": true,  "python.formatting.provider": "yapf"}

8. 打开python文件,比如HelloWorld.py,按F5运行调试即可。

你可能感兴趣的:(VSCode配置python开发环境)