Visual Studio C的自动完成Doxygen标记 [英] Visual studio auto complete Doxygen tags for C++
问题描述
有没有一种方法可以使Visual Studio自动将doxygen标签放置在C ++源文件中?
Is there a way to make visual studio automatically place the doxygen tags in a C++ source file ?
例如,我的意思是这段代码:
What I mean is for example this piece of code:
int foo(bool p);
如果我在顶部键入 ///
其中,Visual Studio自动生成以下行:
If I type ///
on top of it, Visual Studio automatically generates the following lines:
/// <summary>
///
/// </summary>
/// <param name="p"></param>
/// <returns></returns>
int foo(bool p);
我的问题是:是否可以对doxygen进行相同操作(当我键入 / **
)?要使VS生成以下内容:
My question is: is it possible to do the same with doxygen (when I type /**
)? To make VS generate the following:
/**
* @brief
* @param p
* @return
*/
int foo(bool p)
我的问题是关于编写文档标签(不生成最终的doxygen)。
My question is about writing the documentation tags (not generating the final doxygen).
推荐答案
我不知道为什么这样做不会在我在Visual Studio Marketplace上的搜索中弹出,但这使用 / *!
doxygen标签完成了这项工作。
I don't know why this did not pop out on my search on Visual Studio Marketplace, but this does the job using /*!
doxygen tag.
https://marketplace.visualstudio.com/items?itemName=dragospop.CppDoxyComplete
示例:
/*!
*
*
* \param b
* \return
*/
int foo(bool b)
这篇关于Visual Studio C的自动完成Doxygen标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!