CLion 2021.1 Help

Rename dialogs

Refactor | Rename

Shift+F6

Rename dialogs help you perform the Rename refactoring for various entities such as classes, fields, functions, and so on. You can apply changes to the name occurrences selectively.

ItemDescription
Rename <symbol name> and its usages toIn 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 any.

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 in comments and stringsSelect this checkbox to have the changes applied to comments and strings.
Search for text occurrencesSelect this checkbox to have the changes applied to the documentation, HTML, and other files included in the project.
Last modified: 22 March 2021