Sublime Forum

Sort CSS Rules Alphabetic

#1

Hello,

I was wondering if there is a package out there that allows me to auto alphabetize each css selector rules ?

For example:

.something {
  padding: 0;
  margin: 10px;
  float: left;
  background: green;
}

to

.something {
  background: green;
  float: left;
  margin: 10px;
  padding: 0;
}

Kash

0 Likes

#2

Here:

github.com/kuroir/SublimePlugins

0 Likes

#3

You can highlight the lines and there are sort options on the Edit menu.

0 Likes

#4

[quote=“kuroir”]Here:

github.com/kuroir/SublimePlugins[/quote]

I see that you have a bunch of different plugins in there but how would I install them so that sublime recognizes it?

[quote=“agibsonsw”]Re: Sort CSS Rules Alphabetic
by agibsonsw on Fri Mar 30, 2012 2:19 am

You can highlight the lines and there are sort options on the Edit menu.[/quote]

I saw that but you have to do selector by selector not as a whole :confused:

Kash

0 Likes

#5

See CSScomb ST2 plugin

0 Likes