From 3268930bb025b886ecf6fb7badf42e827672be32 Mon Sep 17 00:00:00 2001 From: Nahuel Soldevilla Date: Mon, 26 Dec 2016 16:43:59 -0300 Subject: [PATCH] Change Wrap line behavior Change all "Wrap when necessary" to "Wrap all". Also add "never join already wrapped lines" to give the possibility to manually format specific lines to never wrap. With this change, the user is responsible for wrapping when it deems necessary. Example: Before: /** * Parameters */ class Example { // line width > 140 will wrap exceeding text Example(int arg1, int arg2, int arg3, int arg4, int arg5, int arg6) { this(); } Example() { } } After: /** * Parameters */ class Example { // Manually formatted // If one argument is wrapped, all the other ones are wrapped Example( int arg1, int arg2, int arg3, int arg4, int arg5, int arg6) { this(); } Example() { } } Wrapped and non-wrapped code can be mixed, as long as the same group are in the same line. Example: final List> data = ImmutableList .>builder() .add(ImmutableList.builder().add(randomAlphabetic(5)).build()) .build(); --- .../leafnode-google-formatting.xml | 521 +++++++++--------- .../leafnode-javascript-formatting.xml | 470 ++++++++-------- 2 files changed, 499 insertions(+), 492 deletions(-) diff --git a/eclipseSettings/leafnode-google-formatting.xml b/eclipseSettings/leafnode-google-formatting.xml index 8175ad6..f8e5c70 100644 --- a/eclipseSettings/leafnode-google-formatting.xml +++ b/eclipseSettings/leafnode-google-formatting.xml @@ -1,291 +1,298 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + - - - + + + + + + + + + + - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + - - - - - - - + + + + + + + + + - - - - - + - - - - - - + + + + + + + + + + + + + + diff --git a/eclipseSettings/leafnode-javascript-formatting.xml b/eclipseSettings/leafnode-javascript-formatting.xml index 3bd21c8..a9eef6e 100644 --- a/eclipseSettings/leafnode-javascript-formatting.xml +++ b/eclipseSettings/leafnode-javascript-formatting.xml @@ -1,267 +1,267 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - + + - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + - + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + - - + + - - - - - - - - - - + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - + + + + + + + + + - - - - - - + + + + + + + + + + - - - - - - - - - + + + + + - - - - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + +