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

Are the settings per language supported? #312

Closed
yuheiy opened this issue Dec 20, 2017 · 9 comments
Closed

Are the settings per language supported? #312

yuheiy opened this issue Dec 20, 2017 · 9 comments
Labels
locked Please open a new issue and fill out the template instead of commenting.

Comments

@yuheiy
Copy link

yuheiy commented Dec 20, 2017

VSCode settings:

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

This is not works.

@yuheiy yuheiy changed the title Are language scope settings supported? Are the settings per language supported? Dec 20, 2017
@kaminaly
Copy link

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

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

@CiGit
Copy link
Member

CiGit commented Dec 20, 2017

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.

@yuheiy
Copy link
Author

yuheiy commented Dec 20, 2017

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

@CiGit
Copy link
Member

CiGit commented Dec 20, 2017

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

@yuheiy
Copy link
Author

yuheiy commented Dec 20, 2017

I understand. Thank you!

@yuheiy yuheiy closed this as completed Dec 20, 2017
@luchillo17
Copy link

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

@Glavin001
Copy link

Subscribe to microsoft/vscode#26707 for VSCode updates.

@steph643
Copy link

@CiGit's solution to this issue works perfectly and is detailed here: #242 (comment)

@github-actions
Copy link

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 github-actions bot added the locked Please open a new issue and fill out the template instead of commenting. label Apr 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

6 participants