Monday, February 11, 2013

Editing Javascript in Visual Studio

The other day I downloaded a javascript library to do some rss feeding. I quickly discovered that I need to add some additional functionality to said javascript, but when I opened the file I realized that like most javascript libraries, there are NO LINE BREAKS.  Of course, this is to minimize the size of the javascript file and supposedly it also provides a performance boost, but for my purposes it did nothing but keep me from being able to read the daggon' javascript.

Well, it turns out there's a quick way to automatically format the javascript in VS.  Just open up the file and go to Edit > Advanced > Format Document.  That's it!

No comments:

Post a Comment