visual-studio-code - 使用 Visual Studio 代码在评论中忽略 pep8(E501)
问题描述
如何使用 Visual Studio 代码忽略 Python 注释中的 pep8 (E501)。我需要的是忽略 Python 注释中的警告,而不是 Python 代码中的警告。似乎将 python.linting.pep8Enabled 设置为 false 将忽略所有警告。如何自定义我的 setting.json?
解决方案
看起来我有同样的问题,我用过
"python.linting.pep8Args": ["--ignore=E501"]
在我的 settings.json 中忽略它。
推荐阅读
- amazon-web-services - Amazon S3 存储桶图像已上传,但 URL 中的 AccessDenied
- ag-grid-angular - 我试图打印我的 ag-grid 但它不能根据官方文档工作?
- php - 为什么我在使用 nginx 时出现不允许的错误?
- sql - 更新字段并跟踪日期
- python - 如果我使用带有 pydrive 的服务帐户,为什么我需要刷新令牌?
- reactjs - 撰写图表静态 Y 轴值
- sql - PostgreSQL DATE_TRUNC 2 周
- firebase - 有什么方法可以跟踪 Firestore 的读写吗?
- java - 如何杰克逊按值序列化命名?
- asp.net - MongoDB opsmanager 启动服务无法启动