kstenschke / shifter-plugin

Intelligent string/code manipulation plugin for Jetbrains IDEs: Detects shiftable type of word/line/selection and manipulates it on keyboard shortcut
http://plugins.jetbrains.com/plugin/6149
Apache License 2.0
105 stars 13 forks source link

Multi-line sorting results in single line #39

Closed speedbomb closed 6 years ago

speedbomb commented 6 years ago

If I shift a multi-line selection to sort it alphabetically, Shifter will sort it correctly, but removes all line breaks:

ul.ring > li {
    background-position: 3px 4px;
    background-image: url(images/bullet_ring.png);
}

with only the two lines with CSS properties selected will result in:

ul.ring > li {
    background-image: url(images/bullet_ring.png); background-position: 3px 4px;
}

Sorting associative arrays e.g. in PHP keeps the line breaks, so I think, some weird setting is responsible for the unwanted result. Just can't find any line break settings in code style for CSS or SCSS files.

speedbomb commented 6 years ago

Tested again with Shifter 1.7.7 and PhpStorm 2017.3.5 → solved

kstenschke commented 6 years ago

:-) thanks for your updated feedback.