在Visual Studio 2010 C ++中为///生成XML文档注释

编程入门 行业动态 更新时间:2024-10-22 20:36:10
本文介绍了在Visual Studio 2010 C ++中为///生成XML文档注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要注释我的函数原型(用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文档注释

本文发布于:2023-11-13 00:51:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582955.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:注释   中为   文档   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!