The software, in particular, the unfolding code written in one line, and generally making it convenient for human perception, is called a formatter or beautifier .
Common solution for js
Online JavaScript beautifier . Alternatives can be found on the network, but personally this service completely suits me. At the bottom of the link there is a list of formatter for browsers, text editors, IDE, etc. - choose depending on what you use.
Sublime Text 3 Solution
On Stack Overflow, we recommend the HTMLPrettify plugin (requires preinstallation of the Node.js platform), which I had no problems with using .html and .css ; some of the .js , namely the font files embedded through Cufón , refused to format the plugin correctly. It does not expand js and the tool embedded in Sublime Text 3: select the text by pressing Ctrl + A → Edit → Line → Reindent .
The js-beautify plugin came up . After installing it in the file that needs to be formatted, you should click somewhere with the right mouse button and select JavascriptBeautify in the drop-down menu. The code will unfold and get a beautiful view.
Before:

After:

Thank.