Prettier-vscode: PostCSS support

Created on 3 Jun 2017  路  7Comments  路  Source: prettier/prettier-vscode

Hello,

I'm using this extension to support PostCSS, but it doesn't work with Prettier. Can you add PostCSS in language mode?

Extension: https://marketplace.visualstudio.com/items?itemName=mhmadhamster.postcss-language

Thank you!

enhancement locked

Most helpful comment

Is #116 ok for you?

All 7 comments

Is #116 ok for you?

@CiGit yes!

Can someone share their config they used to get PostCss formatting with prettier please?
I am using this https://marketplace.visualstudio.com/items?itemName=mhmadhamster.postcss-language for syntax support.

Do you need to name the files .pcss extension or do you map css to postcss type?

"files.associations": {
  "*.css": "postcss"
}

I have tried this too

  "[postcss]": {
    "editor.formatOnSave": true
  },

No luck...

@stewartduffy I'm also using vscode and struggling getting it to work with postcss files.

Language are now provided by prettier. postcss is currently not part of what prettier gives us.
There is a PR on prettier's side for exactly that.
Edit: the PR

Supported since 1.1

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZiiMakc picture ZiiMakc  路  4Comments

bajtos picture bajtos  路  4Comments

SkeLLLa picture SkeLLLa  路  4Comments

Levdbas picture Levdbas  路  4Comments

FlorianWendelborn picture FlorianWendelborn  路  3Comments