简体   繁体   中英

Renaming objects with Wing IDE

I am just transitioning from Eclipse to Wing IDE for my Python code. In Eclipse I had an option to "rename" objects. 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?

The refactoruing is a feature asked for since 2002 , but even then, the answer was already:

" 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:

Refactoring is in our plans for future releases.

(but not yet for the upcoming 3.2 , it seems: see here the full CHANGELOG )

替代文字
(source: wingware.com )

WingIDE 4现在支持重构。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM