search

Home  >  Q&A  >  body text

c++ - visual stdio中怎样给创建的cpp,h文件自动添加头部注释

我用visual stdio2013做c++开发,怎样才能在visual stdio中自动给创建的头文件添加头部注释。网上搜到了大约有三种方法:
1.直接更改模板文件,但是网上搜到的都是怎样更改c#文件的头部注释的,没有C++的,C++的目录中的文件结构和c#很不相同;
2.使用宏编辑器的,这种方法都是针对visual stdio2010及以前的版本有效,从visual stdio2012开始没有宏编辑器了;
3.使用visual assistant助手,但是我发现在visual stdio2013中提示功能很强,就没装那个插件。
情况如上描述,请各位大神教我如何做,最好是直接更改模板文件。

怪我咯怪我咯2804 days ago606

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:44:42

    For Visual Studio 2013.

    1. Template files, VS does not provide template files for C++. C#/VB only
    2. Macro editor, as you said.
    3. 2013 There is really no need to use a "heavy" plug-in like VA, the built-in prompts are already very powerful.

    What to do? I searched for a long time and couldn't find any good way. Until I met a god-like plug-in.

    Atomineer Pro Documentation

    This plug-in perfectly supports various comments of C++ and provides choices of various mainstream styles such as DocXml, Doxygen, Qt, and JavaDoc.
    Super lightweight, focused on annotations, and supports various versions of VS.


    This is the best solution I could find, the only regret is that the plugin is charged and only offers a 30-day free trial.

    reply
    0
  • Cancelreply