How do I add Jquery VS intellisense reference to my view in VS 2010
问题 I am trying to get Jquery intellisense working in Visual Studio 2010. I've looked around on StackOverflow and tried adding this to my view: @{ /// <reference path="/Scripts/jquery-1.5.1-vsdoc.js"/> } That's not working.. I've got it working by adding the same script tag to each view but this is less than ideal since i want to keep all my scripts in one place at the bottom of my layout page. 回答1: Add the <script> tags to each view inside an @if (false) { ... } block. The IDE will still see