Select items to refactor

11 weeks ago by
Hi, a quick question on refactoring. Selecting a symbol to refactor gives you a list of locations with a checkbox next to each one. Sometimes comes up with an unticked check box and question mark next to the symbol indicating Wing thinks it's a possible match only.

Questin is, how to easily tick/untick multiple checkboxes in this list? Takes a while to manually tick/untick matches if there lots of them! I can't see anything in the preference settings. This is all on Windows, Wing Pro 6.11


Community: Wing Python IDE

1 Answer

11 weeks ago by
The ones with ? are possible matches where Wing could not determine the types of one or both symbols so it doesn't know if it's actually the same symbol.  It looks like there is no way to check all the boxes quickly, which is partly an oversight and partly due to the fact that often this indicates that you should add to your Python Path in Project Properties so Wing can resolve imports or use one of the hints at so Wing can figure out the types.  Often not much is needed to get things to "click" for the analysis engine, and in general things work a lot better once this is done.

That said, I think we should try to make it easier to check items, probably by allowing multi-select in the list and checking on/off all the selected ones, as well as adding check-all-possible.  The issue here is of course that making this too easy can lead to people refactoring incorrectly.   Hence our greater emphasis on getting the analysis to be complete and correct in the first place...
Thanks very much! Hadn't set the python path, oops! Multi select would be handy like you say, but there's always a balance between making things quick and easy to both break and fix....


written 11 weeks ago by Steve Ingram  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »