Is there a way to add comment prefix while writing comment?
Answered
Hi,
when I'm typing with doxygen using /** as comment prefix, It can automatically add * for each line in the comment field.
/**
* blablabla... <Enter>
*/
The new line would start with a new ‘*' at perfect position.
But when I'm using /// as comment prefix, it's not ok. Our team uses /// as comment prefix at any where, so is there a way to type /// automatically in the new line? Like this:
/// comment1 <Enter>
Then it would be like this:
/// comment1
/// <
I know it's difficult to distinguish whether I wanna to write comment or code, AFAIK, some other editor(IDE) use a new command to this function. Such as Emacs uses Alt+J to start new line with /// prefix but Enter as a common new line.
Thanks!
Please sign in to leave a comment.
Hello!
We have a related issue in our tracker: https://youtrack.jetbrains.com/issue/CPP-10207. Feel free to comment or upvote.