![]() ![]() To make it work, you have to put this comment block inline after the function definition. You can also document your code, such that on autocompletion you will see the function's summary and parameters' description. For example, I was using this Ember.js object and wasnt getting any help so intellisense just added all the info that it had. You can add a 'hint' or reference so Visual Studio can be smarter for you. And no worries, Visual Studio can deal with reference cycles. There are times when youre working in a JavaScript file that needs to know about objects in another file but the editor cant figure it out. In a larger web application project where all JS is packed and minimized together, what we usually do is create a single JS file with all the references and reference this file from the other JS files. So the file does not have to be a special prepared VSDoc file, it can be any JS file. Usually you won't have make separate VSDoc files, just referencing the original files will be enough. VSDoc understands tilde (~) as the root of the project. To reference a jQuery VSDoc from another JS file, you do something like this: /// How to use those or make your own? Referencing another fileĪs with C#, VSDoc information is gathered from line comments that have an extra slash, e.g. jQuery supplies VSDoc files for their framework. ![]() But it would also be nice if it could also autocomplete on your JavaScript code in other files. Visual Studio has autocompletion (IntelliSense, VSDoc) for the JavaScript language and of code in the same file. Visual Studio JavaScript autocompletion (VSDoc IntelliSense) 15 februari 2017 | Developer ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |