NO javadoc style comment in CDT?

I use CDT to create a C project. But when I enter / * and a new line I got something like

/** * */ 

but not

  /** * @param * @return */ 

I tried changing the code template, but there is no $ tag variable there.

I am using CDT 7.02. + ubuntu 10.04 LTs

what should I do. Thanks!

+4
source share
1 answer

CDT supports doxygen out of the box. However, there seems to be no equivalent to the $ {tags} variable found in JDT.

To enable doxygen globally, go to Window> Preferences> C / C ++> Editor. Find the "Documentation Comments" section and set the default "Workspace" for Doxygen.

To enable doxygen for a specific project, right-click the project and select Properties. Then, on the C / C ++ General page, click "Enable Specific Project Settings", then select doxygen.

+5
source

Source: https://habr.com/ru/post/1342574/


All Articles