doxdocgen icon indicating copy to clipboard operation
doxdocgen copied to clipboard

Settings for templates have no effect

Open Chris-Bee opened this issue 1 year ago • 2 comments

Describe the bug Changing the prefix for the templates does not return the expected result.

I tried to change the templates from "@brief" to "\brief" and the auto-generation still generates "@brief". I also tried to leave the field blank, which should then not generate the "brief" element at all, but it still generates "@brief". This happens for all templates: param, return, etc.

I used the following settings, these were generated by entering the strings in the config menu of the extension in VS Code:

    "doxdocgen.c.firstLine": "///",
    "doxdocgen.c.triggerSequence": "///",
    "doxdocgen.c.commentPrefix": "/// ",
    "doxdocgen.generic.briefTemplate": "\\brief ",
    "doxdocgen.generic.paramTemplate": "\\param {param} ",
    "doxdocgen.cpp.tparamTemplate": "\\tparam {param} ",
    "doxdocgen.generic.returnTemplate": "\\return {type} ",
    "doxdocgen.c.lastLine": "///",

Your System:

  • OS: Linux
  • VS Code Version 1.73.1
  • Doxdocgen Code Version v1.4.0

Additional context I also tried older versions with the same result.

Chris-Bee avatar Nov 11 '22 15:11 Chris-Bee

Funny enough, after restarting VS code, it works exactly once as expected, a second time produces the behavior described above.

Chris-Bee avatar Nov 21 '22 14:11 Chris-Bee

Same issue here. This has previously worked for me. I'm uncertain if any other extension or maybe VSCode itself interfere with the extension. For me I also noticed that the other DocStrings are added without pressing enter, but already after the /// trigger sequence. This is what makes me believe that something else produces the docstring

EDIT: Seems to be related to the default C/C++ extension. Setting "C_Cpp.doxygen.generateOnType": false seems to solve the problem for me

mtnmbr avatar Jan 02 '23 12:01 mtnmbr