IntelliJ中的PEP8压痕警告 [英] PEP8 indentation warning in IntelliJ

查看:623
本文介绍了IntelliJ中的PEP8压痕警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在IntelliJ中将PEP8缩进设置为2。但是,我仍然得到PEP8缩进警告,因为长度不是4。我去了'设置 - >编辑器 - > Python'并关闭了缩进警告。但是,检查员仍然继续给我警告。


I have set my PEP8 indentation to 2 in IntelliJ. However, I still get the PEP8 indentation warning as not being of length 4. I went to 'Setting -> Editor -> Python ' and turned off the indentation warning. However, the inspector still continues to give me warnings.

推荐答案

转到设置|编辑|检查| PEP 8编码样式违规并将 E111 添加到忽略错误列表中。

Go to Settings | Editor | Inspections | PEP 8 Coding Style Violations and add E111 to the "Ignore Errors" list.

这篇关于IntelliJ中的PEP8压痕警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆