How to make minified JavaScript files easier to read in VS Code

preview_player
Показать описание
When working with generated JavaScript files, it is common to come across single line files that look like a jumbled mess at first glance.

How are you going to find the function you are after inside all that?

With a few simple default keyboard shortcuts in VS Code, we can split the single line over multiple lines and then format the file to have more sensible indentation. This will make it much easier to read and you can then figure out exactly what your JavaScript is doing on your webpage.
Рекомендации по теме