c++ - Eclipse Formatter: Enums and Constructor -
i try apply guidelines code formatter in eclipse, have problem 2 things: @ first, enum classes:
what expect after formatting:
enum class type : uint8_t { first = 1, second = 2, third = 3 } what after formatting:
enum class type : uint8_t { first = 1, second = 2, third = 3 } the second thing constructors: again, expect:
example::example(int x) : _x(x) { } and get:
example::example(int x) : _x(x) { } so have change line break of enums , indention of assigment list of constructors. sadly dont find options.. can help?
you can control formatting options using project properties->c/c++ general->formatter tab:

using edit following window options pops up:

regarding enum declarations seems line wrapping options can controlled:

Comments
Post a Comment