Otsuchi how to align camel routes in Java DSL in intellij-idea?

When aligning the code with camel rout'AMI intellij idea does so:
from("direct:loop")
 .log("Loop: ${header[loopCount]}")
.choice()
 .when(simple("header[loopCount] < 10"))
 .process(exchange -> {
 Message in = exchange.getIn();
 in.setHeader("loopCount", in.getHeader("loopCount", Integer.class) + 1);
})
.to("direct:loop")
.otherwise()
 .log("Exiting loop")
 .end();

Are there any plugins or something that the code after the alignment looked like this:
from("direct:loop")
 .log("Loop: ${header[loopCount]}")
.choice()
 .when(simple("header[loopCount] < 10"))
 .process(exchange -> {
 Message in = exchange.getIn();
 in.setHeader("loopCount", in.getHeader("loopCount", Integer.class) + 1);
})
.to("direct:loop")
.otherwise()
 .log("Exiting loop")
 .end();

?
There is a plugin for ideas apache camel idea, but there is no such functionality. Saw another similar question on EN.stackoverflow, but it remained unanswered.
June 14th 19 at 20:05
1 answer
June 14th 19 at 20:07
Times, and formatiraj as you like. Your perfectionism, no one's gonna hurt! ;)
thanks, but it's not. They offer to turn off the formatting of some code snippets, I need to format it, but in a certain style only for camel route's - I saw in different repo on github similar style, but have not found how to do it. - bessie41 commented on June 14th 19 at 20:10
exactly! :) if you need the formatting style is not supported by the machine, unplug the machine for this code block, do one-time handles and be done with it! - Montana_Abshire commented on June 14th 19 at 20:13
I'm too lazy to download it all. you are these settings applied? there's just no need code style inside? - Montana_Abshire commented on June 14th 19 at 20:16
thanks for the replies) I'm really glad that you found a solution, but it turned out that there's no format settings. Studied a bit the subject - was that this format really is, in addition to your links in the first post, there is no solution.
Perhaps in future versions of Apache Camel plugin IDEA will make: https://github.com/camel-idea-plugin/camel-idea-pl... - bessie41 commented on June 14th 19 at 20:19

Find more questions by tags JavaIntelliJ IDEA