[英]VS2012 javascript intellisense field description
Is there a way to enable the field xml tag description for a property? 有没有一种方法可以为属性启用字段xml标签描述? Example code:
示例代码:
function MyObj() {
/// <field name='num' type='int'>integer field</field>
this.num = 5;
}
Then if I do the following: 然后,如果我执行以下操作:
I do not see the description "Integer field" I specified. 我没有看到指定的说明“整数字段”。
Is this a disabled option somewhere? 这是某个地方的禁用选项吗? Or just a bug?
还是只是一个错误? Documentation for javascript intellisense isn't very prevelent :(
javascript intellisense的文档不是很完善:(
Edit: It should be noted I have resharper installed. 编辑:应该注意,我已经安装了共享工具。
try something like : 尝试类似的东西:
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;
}
in your case: 在您的情况下:
function MyObj() {
/// <field name='HorsePower' type='Number'>integer field</field>
this.num = 5;
}
if that is not working Use the IntelliSense page of the Options dialog box to add an extension as a reference group. 如果不起作用,请使用“选项”对话框的“ IntelliSense”页面将扩展名添加为参考组。 You can access the IntelliSense page by choosing Tools , Options on the menu bar, and then choosing Text Editor , JavaScript , IntelliSense , References .
你可以通过菜单栏上选择工具 , 选项 ,然后选择文本编辑器 ,JavaScript中, 智能感知 , 引用访问智能感知页面。
That is explained in These MSDN Docs 这些MSDN文档中对此进行了解释
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.