Javascript Intellisense Problems - XML Comments
Posted February 11th, 2008 by dcox94
Hello,
I just started working with 2.4 with vs2008
I choose to upgrade to vs2008 (mainly) because of the javascript intellisense features.
My problem is that XML comments in .js files do not seem to work within a vsphp solution.
XML comments can be used to reference other .js files
for example in ScriptFile1.js, you can add
/// <reference path="ScriptFile2.js" /> and the javascript intellisense should include functions and objects from ScriptFile2.js
You can also add XML comments to add "help" text to a javascript function.
function getInfo(size, color) {
/// <summary>Get Information about the widget.</summary>
/// <param name="size" type="Number">The Widget Size.</param>
/// <param name="color" type="String">The Widget Color.</param>
/// <returns type="String">Returns info about the widget.</returns>When using a standard web project, these xml comments work as expected.
When using a vsphp project, they do not work at all.
Is this a bug? Is there a setting to turn this on?
Thank you,
Dan


I need to check how we
I need to check how we enable that in the project.
Thanks... Also, In standard
Thanks...
Also, In standard web projects, you can drag a file from the solution explorer into a .js file and it will create a reference for you. Thie also seems to be disabled in php projects.