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 <head> tag. Am I doing anything wrong?
Javascript – How to get JavaScript/jQuery Intellisense Working in Visual Studio 2008
asp.netintellisensejavascriptjqueryvisual studio
Related Topic
- Javascript – How to access the matched groups in a JavaScript regular expression
- Javascript – How to get query string values in JavaScript
- Visual-studio – How to count the lines of code in a Visual Studio solution
- Javascript – How to get the current date in JavaScript
- Jquery – How to get the ID of an element using jQuery
- Visual-studio – How to auto format code in Visual Studio
- Visual-studio – Can you force Visual Studio to always run as an Administrator in Windows 8
Best Answer
At the top of your external JavaScript file, add the following:
Make sure the path is correct, relative to the file's position in the folder structure, etc.
Also, any references need to be at the top of the file, before any 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...
Once you have done that and saved the file, hit Ctrl + Shift + J to force Visual Studio to update Intellisense.