惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
I
InfoQ
D
Docker
F
Fortinet All Blogs
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
B
Blog
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
罗磊的独立博客
博客园_首页
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
IT之家
IT之家
V
V2EX

博客园 - wintersoft

加入mapstruct后出现 找不到符号 符号: 方法 setXX 的解决方法 解决docker容器日志导致主机磁盘空间满了的情况 prometheus安装(docker) 在Github或Gitee上用hexo搭建个人博客 jenkins更新为国内源 让sentinel-dashboard的流控配置持久化到nacos Yarn和Zookeeper的区别 360关闭系统服务导致开机鼠标需重拔插才用的问题 flink安装启动(docker) jenkins安装启动(docker) arthas安装进docker kafka安装运行(docker) docker port is already allocated 的解决方案 docker删除名称为<none>的镜像 vs code搭建python和tensorflow环境 安装tensorflow-gpu2.0(windows) 安装anaconda和tensorflow(windows) sentinel-dashboard安装、运行(docker) nacos-server安装、运行 (docker)
VS Code中python代码自动格式化 代码自动检查
wintersoft · 2019-10-08 · via 博客园 - wintersoft

VS Code菜单栏中依次打开 File—Preferences—Settings,搜索框中搜索“python.formatting.provider”,

然后在下拉菜单中选择autopep8,yapf,black三种之中任何一个。推荐autopep8

然后Ctrl+Alt+F会提示是否安装,选择后在vs code上方选择以哪种方式安装。

VS Code菜单栏中依次打开 File—Preferences—Settings,

1、搜索框中搜索“python.linting.pep8Enabled”,勾选

2、搜索框中搜索“python.linting.pylintEnabled”,勾选(推荐)

3、搜索框中搜索“python.linting.flake8Enabled”,勾选