PhpStorm 2018.3 Help

Rename Dialogs

Refactor | Rename
Shift+F6

Item

Description

Rename <symbol name> and its usages to

In this field, specify a new name for the symbol.

Search for references

This checkbox is only available for Rename File and Rename Directory refactoring.

  • Clear the checkbox to have PhpStorm rename only the file or folder itself without attempting to find its usages and update them accordingly.

  • Select this checkbox to have PhpStorm search for usages of the file/folder name and apply the refactoring to them.

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 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.

  • If the checkbox is selected, PhpStorm will search for the private entity usages throughout the entire project. This can be useful in situations when a private entity is accessed from outside the class' scope, for example, by means of the property_exists() or a similar function.

  • If the checkbox is cleared, PhpStorm will search for the private entity usages only in the current class' scope.

By default, the checkbox is cleared.

Last modified: 14 December 2018

See Also