Using jQuery in ASP.NET with IntelliSense Correctly
September 23rd, 2011 by Justin Pope
When I’m teaching the MVC boot camp, I’m always amazed at how some of the smallest things are most impressive to students. One of the most common “wow” moments I see from students not familiar with jQuery is how you can trick Visual Studio to provide IntelliSense by including the vsdoc file, but make sure it still uses the min file for performance. That can be done by including the vsdoc file in an if(false) condition like below. This ensures it will never get included in the production code, which still tricking visual studio’s tooling to import the IntelliSense.
