Visual Studio Code配置Python开发环境

1.安装Python插件

在VScode界面按Crtl+Shift+P或者F1

输入ext install

ext install

直接安装Python,也就是点击它,然后等待,安装好后会提示你重启

2.配置运行Python程序

同样的打开命令面板(Crtl+Shift+PF1),然后输入Tasks: Configure Task Runner(中文输入:任务,然后选择任务:配置任务运行程序),选择Other

此时VScode会自动生成.vscode文件夹并生成一个默认的task.json

tasks.json

配置如下

"version": "0.1.0",
"command": "python",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"

然后写完代码后
Crtl+Shift+B运行Py程序
python-run

posted @ 2016-06-29 21:30  Akkuman  阅读(2784)  评论(0编辑  收藏  举报