2014-06-16 69 views
0

有沒有辦法啓用屬性的字段xml標籤描述?示例代碼:VS2012 javascript intellisense字段說明

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

然後,如果i執行以下操作:

image of intellisense

我看不到的描述 「整數字段」 我指定。

這是禁用選項嗎?或者只是一個錯誤?對於JavaScript智能文檔是不是很prevelent :(

編輯:應當注意我已經安裝了ReSharper

回答

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

from MSDN Docs

如果這不是窩使用「選項」對話框的智能感知頁面將擴展名添加爲參考組。您可以通過選擇菜單欄上的工具選項,然後選擇文本編輯器的JavaScript智能感知參考訪問智能感知頁面。

這是在These MSDN Docs

+0

中解釋嗨!感謝您的評論。我只是意識到我有resharper intellisense,當我改變它使用Visual Studio默認它看起來是正確的。你偶然會知道一種用resharper擴展來糾正這種情況的方法嗎? –

+0

@SarahBourt - yea,http://confluence.jetbrains.com/display/NETCOM/Ultimate+Guide+to+Speeding+Up+ReSharper+(and+Visual+Studio) –