Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm on the process of refactoring a large JavaScript application, which has a lot of repeated functions with 2 or 3 different parameters, a lot of global variables used in several modules, etc.

Which tool do you recommend for this purpose?

share|improve this question
Commands like grep and awk will be of help. – Zirak Jan 19 at 1:39
More specifics on what you want to do might be helpful. JS itself is a powerful tool. One of my own personal favorites is a bookmarklet I wrote myself that just brings up all the first-party linked JS (via ajax) and inline JS up in a document in a new tab so I can control-f all the relevant code for the page in one sweep. I used to use a FireFox web dev toolbar plug-in for that but the author added color-coding with the design trade-off that non-trivial amounts of JS will crash the whole thing. And yes. Learn RegEx. Learn it well. – Erik Reppen Jan 19 at 3:15

closed as not constructive by Jim G., Walter, Glenn Nelson, Dynamic, Karl Bielefeldt Jan 19 at 3:27

As it currently stands, this question is not a good fit for our Q&A; format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

1 Answer

WebStorm by JetBrains - from the same company that makes ReSharper (a popular refactoring tool for C#). Several of their other products may also include Javascript refactoring capabilities. (They have IDEs for PHP, Python, Ruby, ...)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.