Today, when I tried to make it simple to rename refactoring in JavaScript using intellij IDEA 10, I was shocked at what it did. He renamed this attribute of the class everywhere, regardless of the attribute belonging to this class or not! For example, Baz.attr1 , renamed Baz.attribute1 , it also renamed Box.attr1 to Box.attribute1 . Previewing Refactor here does not help, because there are hundreds of places where the same attribute name is used in different situations like this.attr1 .
Eclipse does not have JavaScript rename refactoring.
In addition to renaming, I am looking to reorganize a group of functions and move them to Object Literal notes such as
function foo() { } function bar() { }
refactor to:
var MyCompany.Baz = { foo: function() { }, bar: function() { } }
It should reorganize all references to these function calls in all files, including HTML and JSP files such as foo(); changing to MyCompany.Baz.foo();
There is no such thing in the IDE.
Is there a high-quality JavaScript plugin for Eclipse (preferably) or Intellij IDEA that will perform the type refactoring I'm talking about?
source share