Sadly, Visual Studio 2005 or 2008 dont have capability to format Javascript code…  I guess Ctrl+K, Ctrl+D  command only formats  C# and other .net languages…..    So if you are using a third party javascript which has been compacted or badly formatted and now you want to tweak it you are out of luck….

But luckily, there are some excellent online tools to do that job though..

Check out  http://elfz.laacz.lv/beautify/?

I wish visual studio comesup with that capability in future versions…

Advertisements