Alphabetizes properties within your CSS/SASS files.
Defaults to alphabetizing the entire file's properties, but can also isolate to selections. If you want to alphabetize a selection, make sure you select an entire block. e.g.
div {
color: red;
background: blue;
}
Rather than:
color: red;
background: blue;
You can adjust the brackets to use this plugin more generically. It defaults to curly braces {
/ }
but could be adjusted to anything you want deemed as an opening / closing.
shift alt a
will alphabetize your file / selection
- Sort @include for SCSS
- Ignore three types of comment blocks when sorting CSS
- Sort margin before margin-left
- Fix issue #4 about media queries
- Fix incorrect sorting of background urls
- Remove extra spaces between nested blocks
- Trim empty line space
- Add another command "CSS Sort Properties"
- Break out functions into individual files
- Add a couple tests
- Fixes for superfluous line additions
- Fixe for direct descendant in SASS blocks
- Changed replacement marker to shebang
Update icon key command in README
Initial creation of CSS Alphabetize