Closed FransTwisk closed 6 years ago
I have the same problem on Windows 7. My version atom-Beautify 0.28.19.
Property sorting isn't enabled by default. You need to add the objsort
option to your .jsbeautifyrc
, like so:
{
"css": {
"objsort": "css"
}
}
Adding "objsort": "css"
to my .jsbeautifyrc
(as per the above comment) does not solve the problem for me. Properties remain unsorted.
Hi, I'm having a similar issue. My comb custom config file doesn't appear to be working and it uses the comb predefined config instead?
Path to custom CSS Comb = /Users/Jonny/Google\ Drive/.csscomb.json
.csscomb.json
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": false,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"quotes": "single",
"sort-order-fallback": "abc",
"space-before-colon": "",
"space-after-colon": " ",
"space-before-combinator": " ",
"space-after-combinator": " ",
"space-between-declarations": "\n",
"space-before-opening-brace": " ",
"space-after-opening-brace": "\n",
"space-after-selector-delimiter": "\n",
"space-before-selector-delimiter": "",
"space-before-closing-brace": "\n",
"strip-spaces": true,
"tab-size": true,
"unitless-zero": true,
"vendor-prefix-align": true
}
Pretty Diff supports the objsort
property: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/prettydiff.coffee#L18
However, this is not applicable for CSSComb. The csscomb.json
file is directly passed to CSSComb: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/csscomb.coffee#L10-L39
I recommend either switching to using Pretty Diff
for CSS
or creating an issue over at https://github.com/csscomb/csscomb.js
@benlind Could you provide a code sample or debug.md file so that I can see anything different is happening with your code?
This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.
I might just missed setting some config, but when I run beautify, it doesn't re-order my css properties. Mac OS X 10.11.1 Here's the debug:
Atom Beautify - Debugging information
The following debugging information was generated by
Atom Beautify
onMon Dec 07 2015 15:34:30 GMT+0100 (CET)
.Platform: darwin
Versions
Atom Version: 1.2.4
Atom Beautify Version: 0.28.19
Original file to be beautified
Original File Path:
/Users/franstwisk/Desktop/test.css
Original File Grammar: CSS
Original File Language: CSS
Original File Contents:
Beautification options
Editor Options: Options from Atom Editor settings
Config Options: Options from Atom Beautify package settings
Home Options: Options from
/Users/franstwisk/.jsbeautifyrc
EditorConfig Options: Options from EditorConfig file
Project Options: Options from
.jsbeautifyrc
files starting from directory/Users/franstwisk/Desktop
and going up to rootFinal Options: Final combined options that are used
Package Settings: The raw package settings options
Results
Beautified File Contents:
Original vs. Beautified Diff:
Logs: