Adding JScript Intellisense in VS2008 for External files

“Reference” comment in the JS file allows you to see JScript functions and objects from any external file whether it could be an another JS file or a web page or a web service or even an embedded resource.

The common usage is

[code:c#]

///<reference path=”path of webservice or jsfile or webpage” />

[/code]

or

[code:c#]

///<reference name=”resource-name” assembly=”assembly-name” />

[/code]

Example:

To reference Ajax library

[code:c#]

/// <reference name="MicrosoftAjax.js"/>

[/code]

 

Happy coding…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.