How to edit an ‘all-in-one-line’ file (minimized)
Sometimes, when you are learning new ways to make things and download a piece of crap code it has the code in one line.
UAARHGHH… it’s that I think about that cases. I’ll show you one example of that:
Ok, now you are in a trouble. You want edit and adapt it for your benefit, but a normal human like you can’t read that. No problem, if you use the “Replace” tool included in all of the code editors you can edit it!
For example, in a JavaScript code you can replace the “;” with “;n” and “}” with “}n“(Thanks @Phoenix_Alx), and it will look a lil bit more organized.
After that, you will see the code more comfortable for the human eyes.
If the code fails to work after this, you will must revert the process after editing the code.
Other way (better) to do that is with a beautifier, there is a lot, and in Brackets you can install it as a plugin.