First look at VS 2008 - JavaScript intelisence.

Yesterday I downloaded and installed VS 2008 Professional (MSDN License). The process was mild and pretty easy... uninstall all the beta software, install the new software etc. The only problem I had was when I launched a 2005 application (under TFS Source control). VS 2008 (And Team Explorer 2008 by extension) didn't really like this. I got a lot of errors, so I went back to VS 2005, manually checked out the entire solution, then loaded it up in VS 2008.  This worked like a charm.

Once my app was loaded in VS 2008 I was eager to try the new JavaScript Intelisence.  This is actually the main reason for me installing this new release as my application is 80% JavaScript (approx 10,000 lines).  One thing I noticed is the Intelisence only worked for the JS file I was working on. It wouldn't map to the other 30 or so JS files I have in my folder (I'm not sure If I need to do anything special for this).  This really was a bit of a disapointment, but I understand why... the compiler doesn't know I'm using the other JS files... I wonder if there's an "include" command or something that would work...

If anyone knows any ways of telling the complier to link JS files (without manually copying the script) let me know.

 

So far I'm impressed. Good job Microsoft & the VS Team. 

5 Comments

  • if you create a reference from 1 javascript to another, the intellisense should work.

  • look up how to use the tag in your js files.

  • Have a look at the MSDN blog:
    http://blogs.msdn.com/webdevtools/archive/2007/11/06/jscript-intellisense-a-reference-for-the-reference-tag.aspx

  • Thank you for all those comments guys - that did the trick.

    Thanks again!

  • This is one of the reasons I like reading ASP.NET blogs. It's not for the know-it-alls, but for real people encountering real problems that I am just as likely to encounter.

    I know I would have run into this problem, and have been likely to waste time researching a solution. Now I don't have to. I'll definitely be sharing in this fix.

    Thanks for not retracting this post on know-it-all grounds, and letting other people share in your inquiry.

Comments have been disabled for this content.