visual studio c++. Code style access modifier without line break (on the same line as member)

45 Views Asked by At

I'm using Visual Studio 17.9.4 with sharper C++.

I want to configure the code formatting settings so that the member access modifier fits on the same line as my member's type and name. Without line break after access modifier colon.

example:

before

class Foo
{
    private: 
    int member;
};

after

class Foo
{
    private: int member;
};

I didn't find the line break settings for the access modifier either in "Visual Studio -> Options -> Text editor -> c/c++" or in "Resharper -> Options -> Code editing -> c++"

Is it possible to customize formatter this way? maybe with the help of some visual studio extension

0

There are 0 best solutions below