doxdocgen icon indicating copy to clipboard operation
doxdocgen copied to clipboard

Generating redundant asterix

Open lgacnik opened this issue 1 year ago • 1 comments

Description

After typing in /** above methods in class and pressing Enter, one extra blank line with no Doxygen command is generated (in the last line before end of comment line) but it feels rather redundant.

Expected result

2023-07-19 19_11_14-● foo cpp - CppCourseUdemy - Visual Studio Code

Actual result

2023-07-19 19_11_06-● foo cpp - CppCourseUdemy - Visual Studio Code

Can I edit in settings that last asterix before */ end-of-comment terminator is not generated?

lgacnik avatar Jul 19 '23 17:07 lgacnik

@MucaGinger According to what you asked and posted, i can suppose you have never modified setting.json. So if you wanna omit the redundant asterix, you just need to reconfigure doxdocgen.file.fileOrder from setting.json that you can finds out by searching "Open Settings". More detail, you can press ctrl+shift+p to open search box and type Open Setting and following example that i give at below.

For example, you can set it in setting.json as following:

{
    "doxdocgen.generic.useGitUserEmail": true,
    "doxdocgen.generic.useGitUserName": true,
    "doxdocgen.generic.commandSuggestionAddPrefix": true,
    "doxdocgen.file.fileOrder": [
       "file","author","brief", "version","date","copyright"
       //default setting: "file","author","brief", "version","date","empty","copyright","empty"
    ],
}

and it appears as

/**
 * @file test.c
 * @author myName ([email protected])
 * @brief 
 * @version 0.1
 * @date 2023-08-11
 * @copyright Copyright (c) 2023
 */
#include <stdio.h>
int main(){
    return 0;
}

If you can't understand it, you can DM me.

Henu-ZhangGao avatar Aug 11 '23 13:08 Henu-ZhangGao