Is there a way to add comment prefix while writing comment?

已回答

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!

0

Hello!

We have a related issue in our tracker: https://youtrack.jetbrains.com/issue/CPP-10207. Feel free to comment or upvote.

0

请先登录再写评论。