CSS attributes inline?

I've just upgraded to the latest version and PhpStorm has started forcing me to do css attributes on new lines.

The main offender being emmits with browser prefixes.

 

For example, I select the emmet for transform, it will put each attribute on a new line. Before the update, I somehow managed to set it up so that it wouldn't do this.

Any ideas or is this just how it is now?!

0
4 comments

Could you please provide an example? 

0

Yeah sure!

So it want's me to code like this:

.class {
display: block;
position: relative;
}

Where as I prefer writing like this:

.class { display: block; position: relative; }
0

Thanks! Will it help if you enable "Keep single-line blocks" in `Settings/Preferences | Editor | Code Style | Style Sheets | CSS`?

1

You absolute HERO!

Thank you so much!

I've been through those menus so many times and must have completely missed that one.

0

Please sign in to leave a comment.