user1381656
user1381656

Reputation:

Indenting Javascript file line by line?

Is there any way in visual studio 2010 to indent javascript file line by line? I have got a big javascript file where all code is just on one line, so readability of the code is too much compromised.

Any hint? Thanks

Upvotes: 0

Views: 189

Answers (1)

KodeFor.Me
KodeFor.Me

Reputation: 13511

One solution is to copy the entire file content in this site : http://jsbeautifier.org/ then press the Beatify JavaScript or HTML button, and you will get the js properly formated.

Now I suppose that Visual Studio could have a service identical to the sugested one, but I have not used it at all.

The PhpStorm that I am in love with it, has this option, to beautify the code if the code is compressed, as well allows me to define the look of the code format.

Also, as already described by @Andreas, you can use the plugin : http://visualstudiogallery.msdn.microsoft.com/41a0cc2f-eefd-4342-9fa9-3626855ca22a

Upvotes: 3

Related Questions