prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

Are the settings per language supported?

Open yuheiy opened this issue 8 years ago • 9 comments

VSCode settings:

  "[javascript]": {
    "prettier.singleQuote": true
  }

This is not works.

yuheiy avatar Dec 20 '17 08:12 yuheiy

Or If we could use overrides, it would be great.

"prettier.overrides": [
  {
    "files": [
      "*.js"
    ],
    "options": {
      "singleQuote": true
    }
  }
]

kaminaly avatar Dec 20 '17 09:12 kaminaly

VSCode language scope settings are not supported. Only some VSCode specific settings can be put in those.

You can have a prettier config file with settings specific to languages.

CiGit avatar Dec 20 '17 11:12 CiGit

I would like to use VSCode language scope settings. Do you plan to support this in the future?

yuheiy avatar Dec 20 '17 14:12 yuheiy

Once vscode supports it, certainly. We could do it currently, but it's really messy.

CiGit avatar Dec 20 '17 16:12 CiGit

I understand. Thank you!

yuheiy avatar Dec 20 '17 16:12 yuheiy

Has this received any updates? are we still not able to use language scoped settings?

luchillo17 avatar May 12 '18 17:05 luchillo17

Subscribe to https://github.com/Microsoft/vscode/issues/26707 for VSCode updates.

Glavin001 avatar Jun 20 '18 02:06 Glavin001

@CiGit's solution to this issue works perfectly and is detailed here: https://github.com/prettier/prettier-vscode/issues/242#issuecomment-336473702

steph643 avatar Mar 31 '19 16:03 steph643

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.

github-actions[bot] avatar Apr 13 '20 00:04 github-actions[bot]