Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 pydev (eclipse) 中使用 pylint 插件来检查我的代码中的静态错误。通常在很多地方都会出现相同类型的错误,例如未使用的变量 i。有没有办法针对所有此类情况执行一个纠正步骤,而不是去每个错误位置。在这种情况下,我想一次性将任何未使用的变量重命名为 dummy。还有其他类似的错误,例如不必要的分号(我还编写了很多 c++ :( )和未使用的导入,我想一次将其全部删除。
谢谢!
不幸的是,目前 PyDev 中没有这样的快速修复。请将此作为功能请求报告。