As with WebStorm 2016.1.3, it is not possible to change the default behavior of Rename Refactoring . Only options are available for renaming within a limited area , in which case you can enable or disable the mode in place ( see documents ).
Here are two possible workflows. I will give instructions using the PC shortcuts, but you can achieve the same through the context menus.
Find and replace
- Move the cursor to the character you want to rename
- Select a word with Ctrl + W
- Open the Replace dialog with Ctrl + R
- Press Tab and enter a new name
- Alt + P to replace the current occurrence or Alt + A to replace all occurrences
Rename a refactoring tool
- Open the Renaming Restyling tool with Shift + F6
- Enter a new name
- Adjust the filters for
Search in comments and strings and for Search for text occurrences (default) - Refactoring Preview ( Alt + P )
- The
Find Refactoring Preview panel ( Alt + 3 ) Find Refactoring Preview , listing all the occurrences found. - In this list you can choose which files will be refactored; for example, you can exclude all files by clicking Delete in the parent group and then clicking Insert only in the target file
In this (stupid) example, I rename require to require2 . Found several cases. I excluded all of them, excluding the main group, and then included only one file. I could exclude the rest of the groups or select all with Ctrl + A and then Delete to exclude.

see also
source share