2024-06-08 07:22:34 发布
网友
将Spyder更新到4.1.5后,我的脚本中会出现一大堆特定于口味的警报,如:
Code analysis: E261 at least two spaces before inline comment (pycodestyle E261)
或
Code analysis: E266 too many leading '#' for block comment (pycodestyle E266)
虽然许多警告改进了我的代码,但我想禁用我不同意的警告(例如上面列出的两个)
我怎么做
好的,我找到了 Tools -> Preferences -> Completion and linting -> Code Style然后标记复选框Enable code style linting,然后列出所有不需要的警告,并用逗号分隔
Tools -> Preferences -> Completion and linting -> Code Style
Enable code style linting
好的,我找到了
Tools -> Preferences -> Completion and linting -> Code Style
然后标记复选框Enable code style linting
,然后列出所有不需要的警告,并用逗号分隔相关问题 更多 >
编程相关推荐