CSS Formatting


by default, when we format a CSS, or CSS in a HTML file, it turns the CSS definitions line by line. e.g.
.test {
font-size: 10px;
background-color: red

is there a way to set the formating style to format it as:
.test {
font-size: 10px; background-color: red

Alternatively, is there any way to disable the auto "Insert new line"?

I think I have read from somewhere in a document that the CSS style is defined in the HTML style tab but I don't seems to find anything relevant at Settings > Global Code Style > HTML

Thank you very much.

Comment actions Permalink

It seems like there is a request for this feature in Jira already: http://jetbrains.net/jira/browse/IDEABKL-5471. I hope it will be implemented in a minor update to upcoming Idea 8 with other CSS formatting improvements.


Please sign in to leave a comment.