[英]Renaming objects with Wing IDE
I am just transitioning from Eclipse to Wing IDE for my Python code. 我正在从Eclipse转换到Wing IDE以获取我的Python代码。 In Eclipse I had an option to "rename" objects.
在Eclipse中,我有一个“重命名”对象的选项。 I could take any object defined in my code, it could be a variable or a function or a method or whatever, and I could rename it automatically in all the files that referenced it.
我可以接受我的代码中定义的任何对象,它可以是变量或函数或方法或其他任何东西,我可以在引用它的所有文件中自动重命名它。
Is there a similar feature in Wing IDE? Wing IDE中是否有类似的功能?
The refactoruing is a feature asked for since 2002 , but even then, the answer was already: 重构是自2002年以来要求的一个特征,但即便如此,答案已经是:
" search and replace " “ 搜索和替换 ”
BTW, one somewhat related thing we're doing is adding better global replace.
顺便说一下,我们正在做的一件有点相关的事情是增加更好的全球替代品。
[...]
This isn't informed by source analysis but it's still a useful tool for some kinds of refactoring (like renaming poorly named variables or classes).[...]
这不是源分析的结果,但它仍然是某种重构的有用工具(比如重命名命名不佳的变量或类)。
So their advanced search, even based on regex, is still the refactoring of the day for this 3.1.8 Wing IDE: as said in 2007 , the 3.0, 3.1 releases were focused on debugging even though: 所以他们的高级搜索,甚至基于正则表达式,仍然是3.1.8 Wing IDE当天的重构:正如2007年所说 ,3.0,3.1版本专注于调试,即使:
Refactoring is in our plans for future releases.
重构是我们未来版本的计划。
(but not yet for the upcoming 3.2 , it seems: see here the full CHANGELOG ) (但是对于即将到来的3.2 ,似乎还没有:看到这里的完整CHANGELOG )
(source: wingware.com ) (来源: wingware.com )
WingIDE 4现在支持重构。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.