3

Possible Duplicate:
What should I do to obtain javascript intellisense for my own js library in Visual Studio

Is there a how-to on the subject of creating intellisense for your own javascript libraries and classes in Visual Studio?

And is there a way to get it to work across multiple files? What are the rules for this? Does it have to be in the same project? The best solution would be to just include the javascript file in my Master, and then have my "local" javascript files be able to "read" the intellisense...

0

1 Answer 1

3

There is a good How to in MSDN you can find it here and also there is a walkthrough example here

Sign up to request clarification or add additional context in comments.

3 Comments

I can only get it to work within that one particular javascript file. See my edit above...
As far as I know; if you want to make it work across multiple files all files have to be in the same project and in each file you want to use the intellisense you need to add this /// <reference path="yourJS.js" />. like if you want to refer to object from file1.js in file2.js you will add /// <reference path="file1.js" /> as the first line in file2.js
Works like a charm! One last thing, though: Is it possible to have line breaks in the intellisense comments? Some of the <param>'s have fairly long text, and I'd like to break it up...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.