V
V
Vasily Vasilyev2017-08-30 13:30:29
Programming
Vasily Vasilyev, 2017-08-30 13:30:29

IDEA. How to set up so that single line methods/classes don't stretch over multiple lines?

It is necessary that when formatting it does not do this:

public void write(String message) {
        System.out.println("Email: " + message);
    }

And this:
public void write(String message) {System.out.println("Email: " + message);}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Labunsky, 2017-08-30
@Basil_Dev

IDEA automatically collapses such constructs if the result (line) occupies fewer columns (characters) than it is wired in the guideline. If you want to change it, this is the Right Margin parameter in the Editor -> Code Style settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question