JavaScript Formatting in Visual Studio 2008 sp1
The formatting of JavaScript in VS 2008 has finally drove me nuts. Particularly, when pressing enter after a statement, the IDE will decrease the indent of the line above. Why it does this makes no sense to me, but there is a way to get around it.
In VS2008, go to Tools>Options>Text Editor>JScript>Formatting. Uncheck “Format completed line on Enter”. This will keep the IDE from changing the formatting when adding new lines of code to a function/code block in JavaScript.