First time here? Check out the FAQ!
1

refactor filenames

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.

anonymous user
Anonymous
asked 2020-06-15 16:23:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

sc's avatar
26
sc
answered 2020-06-15 17:43:11 -0500
edit flag offensive 0 remove flag delete link

Comments

1

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
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer