Style formatting for comments
已回答
Maybe I'm just blind, but I can't find any options for style formatting regarding comments. I'm trying to follow the Google coding style guidelines and some of their rules are
- For comments on the same line as code, there must be 2 spaces between the code and the beginning of the comment
- Example: printf("hello");__//_the underscores are spaces
- After the // beginning the comment there should be a space before the actual content of the comment
- Example: //_underscore is a space
Is there anyway to get the code formatter to do this?
请先登录再写评论。
It hasn't been implemented in CLion yet: https://youtrack.jetbrains.com/issue/CPP-10289. Feel free to comment or upvote.