Ask Your Question

refactor filenames

asked 2020-06-15 16:23:25 -0500

anonymous user


Is it possible to easily refactor filenames in Wing? I love the ability to refactor variables within a project, but I haven't found a quick way to refactor filenames (so that it propagates to all the files that import it).

Am I missing something, or is this not a feature? There has to be a better way than renaming the file and then individually updating all files that import it.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-15 17:43:11 -0500

sc's avatar

Ah! I discovered that if I refactor an import that imports the filename I want to rename, then one of the suggestions in the refactoring toolbox shows the file as "<filename>: Whole file."

I was expecting to be able to refactor a filename by rightclicking the file in the project browser, but all I was finding was just "Rename."

edit flag offensive delete link more



We'll add a better way to find the refactor option to rename a module in a future release.

Wingware Support's avatar Wingware Support  ( 2020-06-15 17:57:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-06-15 16:23:25 -0500

Seen: 1,112 times

Last updated: Jun 15 '20