Style formatting for comments

Answered

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?

0
1 comment

It hasn't been implemented in CLion yet: https://youtrack.jetbrains.com/issue/CPP-10289. Feel free to comment or upvote.

0

Please sign in to leave a comment.