我需要注释我的函数原型(用C / C ++编写)与summary,returns,param标签。我如何说服Visual Studio在三个正斜杠之后插入xml标签,如在C#中?我找到一个解决方案。当我在C ++项目中重命名xx.h xx.cs时,我可以使用///生成xml注释(IntelliSense in xml注释也工作)。一定有一个更好的办法,一定不能有? 它会杀了我手动写。非常感谢每一个有用的评论。
I need comment my function prototype (written in C/C++) with summary, returns, param tags. How can I persuade Visual Studio to insert xml tags after three forward slashes like in C#? I found one solution. When I rename xx.h xx.cs in C++ project, I can use /// for generating xml comments (IntelliSense in xml comments works too). There must be a better way, mustn’t there? It would kill me to write it manually. I’ll grateful for every useful comment.
/// <summary> /// /// </summary> /// <param name="aa"></param> /// <returns></returns> bool function1(TypeX aa);推荐答案
此功能不是buit-in。您可以尝试使用 Visual Studio加载项。我没有使用 Atomineer Utils Pro文档,但它看起来有希望。它生成文档注释和支持C ++。它花费$ 10。
This functionality isn't buit-in. You can try using Visual Studio add-ins. I haven't used Atomineer Utils Pro Documentation myself, but it looks promising. It generates documentation comments and supports C++. It costs $10 though.
更多推荐
在Visual Studio 2010 C ++中为///生成XML文档注释
发布评论