-
Notifications
You must be signed in to change notification settings - Fork 69
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
CSS Format support #38
Comments
If you wish that CSS Language Server supports Format please help read my comments microsoft/vscode-css-languageservice#44 (comment) I have quickly implemented my idea and it works great. I can format my CSS content. Hope guys of CSS language service will accept my idea. Please help me! |
Good news, @aeschli is aware to customize CSS Language Server with a given CSS formatter. See |
It seems that official formatter extension support might not come to the CSS LS. I am currently in the process of setting up prettier to format CSS in an Eclipse plugin project. When I have a moment, I'd like to write some instructions on setting up prettier in an Eclipse workspace as a workaround to get CSS formatting. If someone see's this comment & wants to format their CSS in Eclipse, please @ me to remind me to post some instructions here. |
A better solution to using Eclipse's build actions would be to try using the prettier plugin for eslint https://github.com/prettier/eslint-plugin-prettier. This could work really well as Wild Web Developer already has support for eslint. I still need to try this out however. |
There is a chance this might not work, as I'm not sure if it's possible to get eslint to lint CSS files since it's coming from the Typescript language server, which processes .js, .ts, .jsx, .tsx files. |
Confirmed that using eslint-plugin-prettier won't help for CSS. |
CSS format is working but it uses default preferences. To uses UI preferences, see #962 |
Closing as per last comment. |
CSS Language Server doesn't provide this feature, I have created an issue for that at microsoft/vscode-css-languageservice#44
The text was updated successfully, but these errors were encountered: