Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Redirect
locationhttps://www.jetbrains.com/help/phpstorm/specific-javascript-refactorings.html
delay2

Include Page
Social Buttons PhpStorm
Social Buttons PhpStorm

...

Tip

While this tutorial covers refactorings for JavaScript code, the IDE also supports refactoring other languages like PHP, HTML and so forth. Check our PHP Code Refactorings in PhpStorm tutorial to learn more, or use the the Refactor This in the various language editors.

...

To do this, we can use the Refactor | Rename... context menu on any file or symbol, or place the cursor on it and use the Shift+F6 keyboard shortcut to invoke the rename refactoring immediately. Note that we could also use the Refactor This action. This last one is very convenient to invoke refactorings as we only need to remember one keyboard shortcut, Ctrl+Shift+Alt+T (Ctrl-T on Mac OS X), to show a pop-up with the different refactorings that we can do.

...

The Inline Refactoring Replace is the opposite of Extract Variable/Constant / Extract Function refactorings: it replaces redundant variables or functions with the full expression. We can select a variable and press Ctrl+Alt+N (or Alt-CMD-N on Mac OS X) to invoke it.

...