Ask Your Question
1

refactor filenames

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

anonymous user

Anonymous

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
1

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

sc gravatar image

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

Comments

1

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

Wingware Support gravatar imageWingware 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

2 followers

Stats

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

Seen: 158 times

Last updated: Jun 15