我可以刷新在Visual Studio中的XML注释,以反映已更改的参数? [英] Can I refresh an XML comment in Visual Studio to reflect parameters that have changed?

查看:166
本文介绍了我可以刷新在Visual Studio中的XML注释,以反映已更改的参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我写的功能:

    public static uint FindAUint(double firstParam)
    {

    }

我可以生成通过键入XML注释///,它给

I can generate the xml comments by typing '///', it gives :

    /// <summary>
    /// *Here I type the summary of the method*
    /// </summary>
    /// <param name="firstParam">*Summary of param*</param>
    /// <returns>*Summary of return*</returns>
    public static uint FindAUint(double firstParam)
    {

    }

如果我再决定我需要更新我的方法是:

If I then decide I need to update my method to be:

    /// <summary>
    /// *Here I type the summary of the method*
    /// </summary>
    /// <param name="firstParam">*Summary of param*</param>
    /// <returns>*Summary of return*</returns>
    public static uint FindAUint(double firstParam,double newParam, double newParam2)
    {

    }

有没有办法让Visual Studio的新PARAMS添加到XML不失以往的描述?

Is there a way to get visual studio to add the new params into the xml without losing the descriptions of the previous ones?

(我要提到我使用的Visual Studio Express的,我不会把它过去微软禁止该功能在Express版本虽然)

(I should mention I am using Visual Studio Express; I wouldn't put it past Microsoft to disallow the feature in the Express version though)

推荐答案

查看 GhostDoc 。这是一个Visual Studio扩展,它会为你生成你的XML注释。

Check out GhostDoc. It is a Visual Studio extension that will generate your XML comments for you.

这篇关于我可以刷新在Visual Studio中的XML注释,以反映已更改的参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆