Rename symbol
ide_renameRename a symbol at a specific file location and automatically update all references across the project. Use it to refactor code safely without manual edits.
Instructions
Rename the symbol at path:line:column and update all references, like Shift+F6 (classes also rename their file). Saves all files afterwards. If the IDE detects conflicts it shows a dialog in Studio and this call times out; resolve it there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| path | Yes | Absolute file path | |
| column | No | Column of the symbol's name (a declaration or a reference to it) | |
| newName | Yes | ||
| project | No | Open project name or base path. Defaults to the project containing `path`, else the active one. | |
| searchInComments | No | ||
| searchTextOccurrences | No | Also rename plain-text occurrences in non-code files |