Indent comments at first column

EditorConfig key: cpp-indent-comment

Indent comments at first column

cpp-indent-comment

If true, comments that start in column 1 are still indented to match surrounding code.

Default value:

true

Possible values:

  • true
  • false

Examples

true
void f() {
  // comment
  return;
}
false
void f() {
// comment
  return;
}