Javascript – Visual Studio code formatter

formattingjavascriptvisual-studio-2008

I'm using Visual Studio 2008 for doing work in C# and JavaScript (AJAXy stuff).

Here's my issue — I love Eclipse and especially the code formatted (Ctrl-Shift-F).
Visual Studio's Ctrl-k, Ctrl-d, really sucks in comparison, especially for javascript.

Is there a way to get VS to behave like the IDE that I miss?

Best Solution

Go into Tools | Options | Text Editor and edit the language specific settings to you're liking. Ctrl-K, Ctrl-D honors these settings, so you can make the code formatter working the way you want. There are a ton of options you can change (bracket positioning, spacing, indenting, etc.).