-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic CSSComb on save #53
Comments
+1 |
2 similar comments
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
+++++++1 |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+2 |
As a workaround, I installed Hooks package, then added this code to my CSS syntax-specific settings:
Works like a charm! |
Whoa, I didn't know about the Hooks package, thanks for sharing your workaround! |
@lrobeson You're welcome! |
@powelski This just made my day dude! Awesomeness in 3 lines of code ;) |
I found another CSS code style formatter plugin that has autosave: |
@karlhorky Too bad it doesn't sort properties. It just takes care of white characters. |
Thanks for the link to the hooks package @powelski, made my day |
The problem with @powelski solution is css-comb now runs on any file type I save, is there a way to limit it to css/scss/sass files? |
@lspoor If you open an .scss file (or whatever syntax you want) and go to "Preferences -> Settings - Syntax Specific" and add this, it will only affect scss or whichever syntax settings file you have open:
|
|
@htmlpluscss |
It would be useful to have an option to automate
Run CSSComb
on every save, rather than manually having to invoke the command.The text was updated successfully, but these errors were encountered: