Skip to content
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

Closed
angelozerr opened this issue Sep 1, 2017 · 8 comments
Closed

CSS Format support #38

angelozerr opened this issue Sep 1, 2017 · 8 comments

Comments

@angelozerr
Copy link
Contributor

CSS Language Server doesn't provide this feature, I have created an issue for that at microsoft/vscode-css-languageservice#44

@angelozerr
Copy link
Contributor Author

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!

@angelozerr
Copy link
Contributor Author

Good news, @aeschli is aware to customize CSS Language Server with a given CSS formatter. See
microsoft/vscode-css-languageservice#44 (comment)

@AObuchow
Copy link
Contributor

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.

@AObuchow
Copy link
Contributor

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.

@AObuchow
Copy link
Contributor

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.

@AObuchow
Copy link
Contributor

AObuchow commented Jul 1, 2020

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.

@angelozerr
Copy link
Contributor Author

CSS format is working but it uses default preferences. To uses UI preferences, see #962

@mickaelistria
Copy link
Contributor

Closing as per last comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants