Make Java Stream line breaks nice with eclipse
procedure
- Open Window-> Settings
- Java-> Code Style-> Press the edit button of the profile more active than the formatter
- Line wrap tab selection
- Function call-> Qualified call selection
- Qualified call settings
- Set line wrapping policy to wrap all elements except the first element except when necessary
- Check the correction split even if the line is shorter than the maximum line width
- Indent the indent policy one by one
Then it will be nice.
Reference link
stackoverflow