JavaScript Formatting in Visual Studio 2008 sp1

by ely February 08, 2010 10:27

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.

Tags: ,

Code

Comments

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen | Modified by Mooglegiant

About the author

Ely is a software developer specializing in .Net technologies.  He lives in Denver, Colorado with his wife, son, and dog.

Page List

RecentComments

Comment RSS