All Projects → hudochenkov → sublime-postcss-sorting

hudochenkov / sublime-postcss-sorting

Licence: MIT license
Sublime Text plugin to sort CSS rules content with specified order.

Programming Languages

CSS
56736 projects
python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sublime-postcss-sorting

postcss-sort-media-queries
PostCSS plugin for combine and sort CSS media queries with mobile first or desktop first methods.
Stars: ✭ 118 (+521.05%)
Mutual labels:  postcss, sort
jsonfiddle
JSON Fiddling
Stars: ✭ 14 (-26.32%)
Mutual labels:  formatting, sort
idea-uroborosql-formatter
Beautiful SQL Formatter for IntelliJ Platform
Stars: ✭ 18 (-5.26%)
Mutual labels:  formatting
fylgja
The modular highly customisable CSS framework. Powered by CSS Components, Utilities and Props for building your Web UI.
Stars: ✭ 65 (+242.11%)
Mutual labels:  postcss
postcss-clearfix
PostCSS plugin that adds a 'fix' argument to the 'clear' property
Stars: ✭ 47 (+147.37%)
Mutual labels:  postcss
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+2342.11%)
Mutual labels:  sort
scalafmt-probot
🤖Github bot for checking code formatting with scalafmt
Stars: ✭ 15 (-21.05%)
Mutual labels:  formatting
Sublime-uroboroSQL-formatter
Beautiful SQL Formatter for Sublime Text 3
Stars: ✭ 25 (+31.58%)
Mutual labels:  formatting
sorting-visualization
🎨 A command-line tool to generate GIF which can display sorting algorithm
Stars: ✭ 37 (+94.74%)
Mutual labels:  sort
webpack-react-starter
Minimal starter for using React + PostCSS with Webpack.
Stars: ✭ 17 (-10.53%)
Mutual labels:  postcss
gulp-sort
Sort files in stream by path or any custom sort comparator
Stars: ✭ 22 (+15.79%)
Mutual labels:  sort
postcode
A PHP library to validate and format postcodes
Stars: ✭ 61 (+221.05%)
Mutual labels:  formatting
postcss-jsx
PostCSS syntax for parsing CSS in JS literals
Stars: ✭ 73 (+284.21%)
Mutual labels:  postcss
nextjs-landing-starter
Build your landing site based on Next.JS in minutes 🚀
Stars: ✭ 59 (+210.53%)
Mutual labels:  postcss
starter-kit
🏃 A simple and powerful Starter Kit made with Webpack, Gulp 4, Pug and SASS
Stars: ✭ 21 (+10.53%)
Mutual labels:  postcss
js-deep-sort-object
Simple module to sort objects recursively by its keys
Stars: ✭ 19 (+0%)
Mutual labels:  sort
leveldb-cli
CLI for LevelDB
Stars: ✭ 86 (+352.63%)
Mutual labels:  formatting
postcss-trash-killer
It is a postcss plugin which wil be remove all unused css
Stars: ✭ 20 (+5.26%)
Mutual labels:  postcss
vite-postcss-preset-env
vite-cssnext.netlify.app/
Stars: ✭ 35 (+84.21%)
Mutual labels:  postcss
repository
[PHP 7] Implementation and definition of a base Repository in Domain land.
Stars: ✭ 26 (+36.84%)
Mutual labels:  sort

sublime-postcss-sorting

Sublime Text plugin to sort CSS rules content with specified order. Powered by postcss-sorting.

Works only with CSS, SCSS and PostCSS.

Install

Install PostCSS Sorting with Package Control and restart Sublime Text.

You need to have Node.js 6+ installed.
Make sure it's in your $PATH by running node -v in your command-line.
On OS X you need to make sure it's in /usr/local/bin or symlink it there.

Getting started

In a CSS or PostCSS file, open the Command Palette (Cmd + Shift + P (OS X), Ctrl + Shift + P (Windows/Linux)) and choose Run PostCSS Sorting. You can alternatively create one or more selections before running the command to only sort those parts. It should be whole rule.

There is keyboard shortcut also: Ctrl + Shift + S (OS X), Ctrl + Alt + Shift + S (Windows/Linux).

Options

(Preferences → Package Settings → PostCSS Sorting → Settings)

You can specify sort order and other options. See the postcss-sorting documentation for all options.

Default

{
	"sort-on-save": false
}

Project settings

You can override the default and user settings for individual projects. Just add an "PostCSSSorting" object to the "settings" object in the project's .sublime-project file containing your project specific settings.

Example:

{
	"settings": {
		"PostCSSSorting": {
			"properties-order": ["padding", "margin"],
			"sort-on-save": true
		}
	}
}

Acknowledgements

This plugin is based on the sublime-autoprefixer plugin by Sindre Sorhus.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].