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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
Anonymous
asked 4 years ago

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
sc's avatar
26
sc
answered 4 years ago
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 (4 years ago)
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)