Skip to content

Rename Symbol

AlexHaxe edited this page Aug 1, 2022 · 6 revisions

"Rename Symbol" (F2) allows you to rename variables, fields, function parameters, types or packages. It's smart enough to deal with shadowing or conflicts with existing field names:

"Rename symbol" uses rename lib to provide all rename and file move information.

Known issues:

  • you need to save all your files before a rename, otherwise positions will be off and your code might break
  • rename will only look in folders specified via haxe.renameSourceFolders config option (defaults to ["src, "source", "Source", "test", "tests"]), if you use additional source folders, you need to add them, otherwise they won't be included when renaming

make sure you preview any changes before appling them.