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:

enter image description here

using edit following window options pops up:

enter image description here

regarding enum declarations seems line wrapping options can controlled:

enter image description here


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -