Search code examples
angularjsintellij-idearefactoringwebstorm

Refactor angular module name in Webstorm


Is there a possibility or trick to rename an angular module in Webstorm with refactoring in the whole project?

'Cause when I have something like this

angular.module('my-module', []);

and my caret is on the 'my-module' string, I cannot refactor the module name. Is there an appropriate place (or plugin) to define this, so it works right?


Solution

  • I can only think of a global search and replace '⌘+SHIFT+r' Maybe, but do share if it does the trick.