0

I am trying to format my java code using Ctrl+Sft+F in Eclipse Neon IDE. I want to get my code formatted in java 8 style.. like below

     persons.stream()
            .filter(p -> p.getAge() > 30)
            .forEach(System.out::println);

But it formatted it in a single line(like nelow), I've to manually format it in java 8 style that is really a headache.

persons.stream().filter(p -> p.getAge() > 30).forEach(System.out::println);

Is there any setting option in eclipse to get it formatted in java 8 style.

Mehraj Malik
  • 14,872
  • 15
  • 58
  • 85

0 Answers0