doxdocgen
doxdocgen copied to clipboard
Settings for templates have no effect
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.
Funny enough, after restarting VS code, it works exactly once as expected, a second time produces the behavior described above.
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