Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VS2012 javascript智能感知字段描述_Javascript_Visual Studio 2012_Intellisense - Fatal编程技术网

VS2012 javascript智能感知字段描述

VS2012 javascript智能感知字段描述,javascript,visual-studio-2012,intellisense,Javascript,Visual Studio 2012,Intellisense,有没有办法为属性启用字段xml标记描述?示例代码: function MyObj() { /// <field name='num' type='int'>integer field</field> this.num = 5; } 函数MyObj(){ ///整型字段 这个.num=5; } 然后,如果我做以下操作: 我没有看到我指定的“整型字段”描述 这是某个禁用的选项吗?还是只是一只虫子?javascript intellisense的文档不是很

有没有办法为属性启用字段xml标记描述?示例代码:

function MyObj() {
    /// <field name='num' type='int'>integer field</field>
    this.num = 5;
}
函数MyObj(){
///整型字段
这个.num=5;
}
然后,如果我做以下操作:

我没有看到我指定的“整型字段”描述

这是某个禁用的选项吗?还是只是一只虫子?javascript intellisense的文档不是很重要:(

编辑:应该注意,我已经安装了resharper。

尝试以下操作:

  function getArea(radius)
  {
      /// <summary>Determines the area of a circle that has the specified radius parameter.</summary>
      /// <param name="radius" type="Number">The radius of the circle.</param>
      /// <returns type="Number">The area.</returns>
      var areaVal;
      areaVal = Math.PI * radius * radius;
      return areaVal;
  }
函数getArea(半径)
{
///确定具有指定半径参数的圆的面积。
///圆的半径。
///这个地区。
面积变异;
areaVal=Math.PI*半径*半径;
返回区域;
}
就你而言:

function MyObj() {
     /// <field name='HorsePower' type='Number'>integer field</field>
    this.num = 5;
}
函数MyObj(){
///整型字段
这个.num=5;
}

如果不起作用,请使用选项对话框的IntelliSense页面添加扩展名作为参考组。您可以通过选择菜单栏上的工具选项,然后选择文本编辑器JavaScriptIntelliSense来访问IntelliSense页面g> 参考资料


您好!谢谢您的评论。我刚刚意识到我启用了resharper intellisense,当我将其更改为使用Visual Studio default时,它显示正确。您是否碰巧知道使用resharper扩展来更正此问题的方法?@SarahBourt-是,