Rename document symbol does not work for occurances of a symbol above its definition

If you define a symbol after it is first used, as shown below, rename document symbol will only apply to instances of the symbol below it in the page.

Expected behavior

The symbol should be renamed even before its definition.

Rename document symbol is intended to work like this - prior to the definition of addNumbers any reference ‘must’ be to a different variable and so a different document symbol.

If you want a purely text-based rename, try the “Select all Occurrences” action instead:
SelectAllOccurrences

That will also allow you to rename addNumbers on line 1 in your example.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.