使用vs code 开发python

1.下载vs code

2.下载python插件

使用ctrl+p,输入“ext install python"

3.选取python解释器

使用Ctrl+Shift+P打开命令板,输入Python: Select Interpreter进行搜索。

 4.设置中文

使用快捷键组合【Ctrl+Shift+p】,在搜索框中输入“configure display language”,点击确定后;

5.配置flake8和yapf

a.打开命令行

b.输入pip install flake8

     pip install yapf

 如出现当前问题

6.配置编译设置

为了改掉连续按两次F5,我们需要将launch.json文件中的"stopOnEntry": true,改为 "stopOnEntry": false。

 

 

然后添加一个"stopOnEntry": false

7.vs code 红色波浪线

需要修改用户设置

 然后输入pylintargs ,点击添加项添加上面字符

猜你喜欢

转载自www.cnblogs.com/jinchang/p/12129824.html