Change Format of css Stylesheets in Eclipse
css, eclipse
Solution
The Aptana Studio plugin for eclipse has a formatter that's pre-configured according to your needs.
I recommend using it regardless as it ease up the development process a great deal for web developers (all sorts of nifty features like built-in Git integration, code assist for common JavaScript libraries, integrated FTP client, embedded AJAX server [Jaxer], nice themes included, etcetera, etcetera...).
References:
- Aptana Studio download page
Problem
So Eclipse can auto-format my css files under Source->Format, or by hitting Cntl-Shift-F. When I group selectors for a single rule, eclipse formats it like this: ``` .planner th,.planner td { border: 1px solid black; } ``` I would really like Eclipse to add a space between the selectors to aide readability, like this: ``` .planner th, .planner td { border: 1px solid black; } ``` Is there any way I can configure Eclipse to do this? I'm running Eclipse Indigo.