I am stuck in the nasty task of "unminifying" a javascript mini code. Using JSBeautifier, the resulting file is about 6,000 lines long.
Usually, the names of variables and parameters will be permanently lost, but in this case I have an outdated version of the source file from which a mini-code of JavaScript code was generated. This obsolete version of the source file contains most comments for codes and variable names, but it cannot be used in place of the current version.
I would like to know if there is a way to rename all instances of a specific parameter or variable in JavaScript. Since minimization reduces names to one character, searching and replacing are not possible.
Is there any tool out there that I can say in this file the parameter afor the function fooshould be clientNameand have it semantically rename all instances of this parameter to clientName?
Unfortunately, I work in a large organization with an approved software list, and I am stuck with Visual Studio 2010 for the foreseeable future (no VS 2012).
Update: @Kos, we do not use Git, but we use source control. The problem is that a developer who no longer works in my organization once made changes to the file, minimized it and only checked it in the miniature version for the original control, so its changes in the original were lost.
source