- Type the following line at the top of your .js file: “/// <reference path="../jquery-1.3.2.min-vsdoc.js" />” (note that this is the VS doc for jQuery which ships with ASP.NET MVC or downloaded from jQuery Docs. It will be included in box with VS2010)
- Open you solution in visual studio. Open you .js file that uses some other framework. Using the mouse, drag the .js framework file (such as Prototype.js) onto your .js file. This will automatically add the <reference> node to the .js file.
- Go to Tool^Options menu.
- Navigate to the Text Editor node, then to the JScript node, then to the Formatting node.
- On the Formatting node click the check box that says “Place open brace on new line for functions”.