【问题标题】:VS2012 javascript intellisense field descriptionVS2012 javascript intellisense 字段说明
【发布时间】:2014-06-16 15:40:30
【问题描述】:

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

function MyObj() {
    /// <field name='num' type='int'>integer field</field>
    this.num = 5;
}

如果我执行以下操作:

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

这是某个地方的禁用选项吗?还是只是一个错误? javascript intellisense 的文档不是很普遍:(

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

【问题讨论】:

    标签: javascript visual-studio-2012 intellisense


    【解决方案1】:

    试试类似的东西:

      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;
      }
    

    在你的情况下:

    function MyObj() {
         /// <field name='HorsePower' type='Number'>integer field</field>
        this.num = 5;
    }
    

    来自MSDN Docs

    如果这不起作用 使用“选项”对话框的 IntelliSense 页面添加扩展作为参考组。您可以通过选择菜单栏上的ToolsOptions,然后选择Text EditorJavaScript来访问 IntelliSense 页面>、智能感知参考

    这在These MSDN Docs中有解释

    【讨论】:

    • 嗨!感谢您的评论。我刚刚意识到我已经打开了 resharper intellisense,当我将它更改为使用 Visual Studio 默认值时,它显示正确。您是否偶然知道使用 resharper 扩展程序纠正此问题的方法?
    猜你喜欢
    • 2013-03-15
    • 2013-06-03
    • 2013-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-26
    • 1970-01-01
    相关资源
    最近更新 更多