如何在Visual Studio 2013中快速向c++代码中添加XML注释

How to quickly add XML comments to C++ code in Visual Studio 2013

本文关键字:c++ 代码 添加 注释 XML Visual Studio 2013      更新时间:2023-10-16

在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)
   {
   }

尝试Visual Assist。