Using the rename refactoring
The Rename refactoring lets you change names of symbols, files and all the references to them throughout the code.
Renaming local variables or private methods can be done easily in-line since only the limited scope is affected. Renaming types, interfaces, or public methods could potentially impact a lot of files. In this case, preview potential changes before you refactor.
Rename the Position field
Press ⇧+F6 and start typing
Rename refactoring for database fields
If we establish a connection to a database, we can rename database fields directly from the query.
Rename the worker table
In the Rename dialog, type
Rename refactoring for JSON
GoLand detects JSON fields in strings and renames all occurrences of the field throughout the code.
Rename the name field
Press ⇧+F6. To invoke the Rename dialog, press ⇧+F6 two times.
In the Refactoring Preview tool window, preview the changes and click Do Refactor.