【问题标题】:How to quickly add XML comments to C++ code in Visual Studio 2013如何在 Visual Studio 2013 中快速向 C++ 代码添加 XML 注释
【发布时间】:2014-08-04 20:19:37
【问题描述】:

在 C# 中,我只需键入“///”,它就会创建带有部分信息的漂亮注释块。

有没有办法对 C++ 代码做同样的事情? 也许是插件?

这只是例子

   /// <summary>
   /// Description for SomeMethod.</summary>
   /// <param name="s"> Parameter description for s goes here</param>
   /// <seealso cref="String">
   /// You can use the cref attribute on any tag to reference a type or member 
   /// and the compiler will check that the reference exists. </seealso>
   public void SomeMethod(string s)
   {
   }

【问题讨论】:

  • 不确定vs2013但是code::blocks在工具栏上有一个按钮来生成块注释,没有填写任何细节但是像\brief、\return和\param这样的标签是自动创建的

标签: c++ xml visual-c++ visual-studio-2013 intellisense


【解决方案1】:

试试Visual Assist。更多信息在this问题中。

【讨论】:

  • 我正在使用它。但它没有那个功能。
猜你喜欢
  • 2012-08-19
  • 2015-09-03
  • 2021-12-27
  • 2021-10-01
  • 2021-08-25
  • 1970-01-01
  • 1970-01-01
  • 2021-06-16
  • 1970-01-01
相关资源
最近更新 更多