Indent access specifiers from class

EditorConfig key: cpp-indent-access-specifiers-from-class

Indent access specifiers from class

cpp-indent-access-specifiers-from-class

If true, access specifiers (public/protected/private) are indented one level from the enclosing class.

Default value:

false

Possible values:

  • true
  • false

Examples

true
class Foo {
  public:
    int x;
};
false
class Foo {
public:
  int x;
};