atom-stylefmt
atom-stylefmt copied to clipboard
4.1.1 still not formatting ðŸ˜
autoformat on save or on dropdown menu still not working for me
@antsav Try again followings on v4.1.0
?
- Packages > stylefmt > Format CSS
- Context Menu > Format CSS
- Command Palette (⌘ + shift + P) > Format CSS
@1000ch still not working for me
@antsav I was able to get the auto format to work if I first do a Command Palette (⌘
+ shift
+ P
) > Format CSS
After the first step it works on save for that file. This is still a bug for me too but that seems to be a temporary workaround.
@brianespinosa unfortunately this doesn't work for me either (
@antsav Would you please debug as followings?
- Any logs in DevTools ⌘ + option + i?
- Try installing manually to debug in detail?
- Remove your installed
atom-stylefmt
. - Clone this repo to anywhere.
- Create link to cloned repo
ln -s ~/path/to/cloned/repo ~/.atom/packages/stylefmt
- Remove your installed
@1000ch thank you for the response that is the error i'm getting on clean repo clone and linking to Atom as per your instrucitons
changed to
if (['css', 'scss', 'sass', 'less', 'postcss', 'jsx'].indexOf(grammar) === -1) {
return Promise.reject(`${grammar} is not supported.`);
}
now getting :
@antsav
Why was the file detected as postcss
grammar?
I have the same issue: it doesn't work when the file format is PostCSS. I want this format because it gets me the proper syntax highlighting for CSS variables/custom properties.