R
R
Roman2018-01-16 18:39:16
Notepad++
Roman, 2018-01-16 18:39:16

How to sort CSS properties alphabetically in Notepad++?

Good afternoon!
Is there any plugin for Notepad++ that could alphabetize all CSS properties?
For example, there are ten properties for an element:

.score {
  position: relative;
  float: left;
  margin: 13px 0;
  vertical-align: middle;
  background-color: #fff;
  border-radius: 20px;
  z-index: 10;
  font-size: 12px;
  text-align: center;
  line-height: 14px;
}

It is necessary, for example, by hot key, to get this from it:
.score {
  background-color: #fff;
  border-radius: 20px;
  float: left;
  font-size: 12px;
  font-size: 16px;
  line-height: 14px;
  margin: 13px 0;
  position: relative;
  text-align: center;
  vertical-align: middle;
  z-index: 10;
}

For other editors there is, for example, csscomb.com , but is there anything for Notepad++? In what convenience I think it is not necessary to explain.
Solution :
Edit->String operations-> Sort in ascending order (by the first digit)
For convenience, go to: Options -> Hotkeys -> Sort in ascending order (by the first digit) -> Ctrl + Chift + C = Profit
Thank you all!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Pavlenko, 2018-02-02
@trudogolik

In general, properties are sorted not alphabetically, but according to their purpose.
And to make everything according to Feng Shui, the scheme looks like this:
{
Positioning
Block parameters
Dimensions
Tables / lists
Text properties
Font
Color
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question