Rename dialogs
Shift+F6
Item | Description |
---|---|
Rename <symbol name> and its usages to | In this field, specify a new name for the symbol. |
Search in JavaScript files | Select this checkbox to rename the usages of the function or the class in compiled JavaScript code. |
Search for dynamic references | Select this checkbox to rename the dynamic usages of the symbol, for example, those of the type
interface myInt {
target: string
}
function onClick(e: any) {
console.log(e.target);
}
interface myInt {
myTarget: string
}
function onClick(e: any) {
console.log(e.myTarget);
}
|
Search for references | This checkbox is only available for Rename File and Rename Directory refactoring.
|
Search in comments and strings | Select this checkbox to have the changes applied to comments and strings. |
Search for text occurrences | Select this checkbox to have the changes applied to the documentation, HTML, and other files included in the project. |
Rename only variables from closest scope | This checkbox is only available when renaming variables in |
Rename accessors | This option is only available for the Rename Field refactoring. Select this checkbox to rename the accessor and mutator methods (getters and setters) for the selected field. |
Search in global scope | This option is only available for the Rename Private Field/Rename Private Method refactoring.
By default, the checkbox is cleared. |