<p>I thought jQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jQuery 1.2.6, but intellisense will not work in a separate jscript file. I have the jQuery library referenced first on my web page in the &lt;head> tag. Am I doing anything wrong?</p>

[{'answer_id': 59770, 'author': 'Jason Bunting', 'author_id': 1790, 'author_profile': 'https://Stackoverflow.com/users/1790', 'pm_score': 7, 'selected': True, 'text': '<p>At the top of your external JavaScript file, add the following:</p>\n\n<pre><code>/// &lt;reference path="jQuery.js"/&gt;\n</code></pre>\n\n<p>Make sure the path is correct, relative to the file\'s position in the folder structure, etc.</p>\n\n<p>Also, any references need to be at the top of the file, before <em>any</em> other text, including comments - literally, the very first thing in the file. Hopefully future version of Visual Studio will work regardless of where it is in the file, or maybe they will do something altogether different...</p>\n\n<p>Once you have done that and <em>saved the file</em>, hit <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd> to force Visual Studio to update Intellisense.</p>\n'}, {'answer_id': 199940, 'author': 'Chris Pietschmann', 'author_id': 7831, 'author_profile': 'https://Stackoverflow.com/users/7831', 'pm_score': 3, 'selected': False, 'text': '<p>You\'ll want to look at this link:</p>\n\n<p><a href="http://blogs.ipona.com/james/archive/2008/02/15/JQuery-IntelliSense-in-Visual-Studio-2008.aspx" rel="nofollow noreferrer">http://blogs.ipona.com/james/archive/2008/02/15/JQuery-IntelliSense-in-Visual-Studio-2008.aspx</a></p>\n\n<p>UPDATE: There is a new HotFix for Visual Studio 2008 and a new jQuery Intellisense Documentation file that brings full jQuery Intellisense to VS\'08. Below are links to get these two:</p>\n\n<p><a href="http://blogs.msdn.com/webdevtools/archive/2008/11/07/hotfix-to-enable-vsdoc-js-intellisense-doc-files-is-now-available.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/webdevtools/archive/2008/11/07/hotfix-to-enable-vsdoc-js-intellisense-doc-files-is-now-available.aspx</a></p>\n\n<p><a href="http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx</a></p>\n'}, {'answer_id': 271359, 'author': 'JD Courtoy', 'author_id': 23468, 'author_profile': 'https://Stackoverflow.com/users/23468', 'pm_score': 4, 'selected': False, 'text': '<p>There is an officially supported jQuery documentation JavaScript file for Visual Studio 2008. This file is only an interim fix until Microsoft releases a hotfix that will more adequately address the issue.</p>\n\n<p>Embedded in ASPX:</p>\n\n<pre><code>&lt;% if (false) { %&gt;\n    &lt;script src="jquery-1.2.6-vsdoc.js" type="text/javascript"&gt;&lt;/script&gt;\n&lt;% } %&gt;\n</code></pre>\n\n<p>Embedded in JavaScript:</p>\n\n<pre><code>/// &lt;reference path="jquery-1.2.6-vsdoc.js" /&gt;\n</code></pre>\n\n<p>Pick it up here: <a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.6-vsdoc.js" rel="nofollow noreferrer">jquery-1.2.6-vsdoc.js</a></p>\n\n<p><strong>References</strong>:</p>\n\n<ul>\n<li><a href="http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx" rel="nofollow noreferrer">Rich Intellisense for jQuery</a></li>\n<li><a href="http://www.hanselman.com/blog/ASPNETAndJQuery.aspx" rel="nofollow noreferrer">Scott Hanselman - ASP.NET and jQuery</a></li>\n</ul>\n'}, {'answer_id': 285970, 'author': 'Alan Oursland', 'author_id': 37189, 'author_profile': 'https://Stackoverflow.com/users/37189', 'pm_score': 2, 'selected': False, 'text': '<p>You shouldn\'t need to actually reference the "-vsdoc" version. If you put the jquery-1.2.6-vsdoc.js in the same directory as jquery-1.2.6.js then Visual Studio will know to covert a jquery-1.2.6.js reference to jquery-1.2.6-vsdoc.js.</p>\n\n<p>I think that will actually work for any file.</p>\n\n<p>Hmmm... that gives a good workaround for another question on this site...</p>\n\n<p>Edit: This feature only works with VS2008 Service Pack 1.</p>\n'}, {'answer_id': 334742, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>For inline JavaScript, use:</p>\n\n<p>/// &lt;reference path="~\\js\\jquery-vsdoc.js"/&gt;</p>\n\n<p>Note the <strong><em>back</em></strong> slashes.</p>\n\n<p>This will not work:</p>\n\n<p>/// &lt;reference path="~/js/jquery-vsdoc.js"/&gt;</p>\n'}, {'answer_id': 589373, 'author': 'roman m', 'author_id': 3661, 'author_profile': 'https://Stackoverflow.com/users/3661', 'pm_score': 0, 'selected': False, 'text': "<p>Make sure you're not using a minimized jQuery file.</p>\n<p>Use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd> to make it work after adding JavaScript files to the project.</p>\n"}, {'answer_id': 940270, 'author': 'nikmd23', 'author_id': 107289, 'author_profile': 'https://Stackoverflow.com/users/107289', 'pm_score': 2, 'selected': False, 'text': '<p>If you are including the annotated jQuery file in your source solely for intellisense, I recommend leveraging preprocessor directives to remove it from your view when you compile. Ala:</p>\n\n<pre><code>&lt;% #if (false) %&gt;\n  &lt;!-- This block is here for jquery intellisense only.  It will be removed by the compiler! --&gt;\n  &lt;script type="text/javascript" src="Scripts/jquery-1.3.2-vsdoc.js"&gt;&lt;/script&gt;\n&lt;% #endif %&gt;\n</code></pre>\n\n<p>Then later in your code you can <em>really</em> reference jQuery. This is handy when using the <a href="http://code.google.com/apis/ajaxlibs/" rel="nofollow noreferrer">Google AJAX Libraries API</a>, because you get all the benefits Google provides you, plus intellisense.</p>\n\n<p>Here is a sample of using the Libraries API:</p>\n\n<pre><code>&lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;\n&lt;script type="text/javascript"&gt;\n   google.load("jquery", "1.3.2", { uncompressed: false });\n&lt;/script&gt;\n</code></pre>\n'}, {'answer_id': 2416994, 'author': 'Raghav', 'author_id': 148657, 'author_profile': 'https://Stackoverflow.com/users/148657', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://codeasp.net/articles/jquery-intellisense-in-visual-studio-2008/102/tips-tricks-of-visual-studio" rel="nofollow noreferrer">jQuery Intellisense in Visual Studio 2008</a></p>\n'}, {'answer_id': 3984041, 'author': 'Steve Miller', 'author_id': 482497, 'author_profile': 'https://Stackoverflow.com/users/482497', 'pm_score': 0, 'selected': False, 'text': '<p>If you want to pick up the Intellisense file from the Microsoft CDN you can use:</p>\n\n<pre><code>/// &lt;reference path="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1-vsdoc.js" /&gt;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/59766', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1284/']