Java formatting: Disable line joining?

558 views Asked by At

I have the following code:

 Arrays.asList(new Point2D.Double(1.00, 3.028571712152178),
     new Point2D.Double(2.00, 4.5990231472038055),
     new Point2D.Double(3.00, 4.816365844337747),
     new Point2D.Double(4.00, 6.018445142602669),

I am using VSCode with Google java style guide.

When I format this bloc of code, I would like to see the following being produced:

 Arrays.asList(new Point2D.Double(1.00, 3.028571712152178), new Point2D.Double(2.00, 4.5990231472038055),
        new Point2D.Double(3.00, 4.816365844337747), new Point2D.Double(4.00, 6.018445142602669),

My goal is to configure the formatter to produce this instead:

 Arrays.asList(new Point2D.Double(1.00, 3.028571712152178), 
        new Point2D.Double(2.00, 4.5990231472038055),
        new Point2D.Double(3.00, 4.816365844337747), 
        new Point2D.Double(4.00, 6.018445142602669),

What is the option to disable the formatter from joining new lines?

0

There are 0 answers