eclipseeclipse-formatter

eclipse formatting new lines at each method property


How can I set up eclipse formatter, to format a method-body to this:

// I want to have a new line on each method property:
public void test(
    double a, 
    double b, 
    String c, 
    Object f
) {
    a = 4;
    b= 3;
    c = "hello";
    f = null;
}

Solution

  • Create a new Eclipse formatter profile based on the Eclipse [built-in] profile and change the following: