HowTo: Prevent Visual Studio from auto-formatting your jQuery source

When writing JavaScript code with Visual Studio 2008 it automatically formats your source code when going into a new line or placing the ";" delimiter. This is quite nice as long as you're writing plain old JavaScript code. But when you start coding jQuery plugins the automatic formatting doesn't fit the standard jQuery indentation and may therefore soon get quite annoying.

To disable this automatic source code behavior for JavaScript files you have to deactivate the settings in the Tools > Options dialog as shown in the figure below.



Your ad here?