Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preserve line-break in Eclipse CSS formatter

Tags:

css

eclipse

In the Eclipse (3.8) CSS formatter, e.g.

.aaa,
.bbb,
.ccc,
.ddd {
    xxx
}

become

.aaa,.bbb,.ccc,.ddd {
    xxx
}

Is it possible to ask Eclipse to preserve the line breaks?

like image 446
Ryan Avatar asked Nov 13 '22 18:11

Ryan


1 Answers

Preferences Java > Code Style > Formatter  

See the "Never join lines" option on the "Line Wrapping and Comments" tab.

like image 153
dstronczak Avatar answered Nov 15 '22 09:11

dstronczak