Search code examples
webstorm

Select all occurrences of a word in WebStorm


Simple question: I am looking for the shortcut in WebStorm to select all the occurrences of a word and then replace them

e.g in my CSS file I want to select all the 'phone' variables at once and change them to 'tab-port'


Solution

  • Use Ctrl+ R for find and replace. This will open up a dialog at the top of the file that will look similar to the following: (depending on your IDE theme)

    find-and-replace-dialog