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

Add option to disable code formatter #20

Closed
decimad opened this issue Mar 11, 2019 · 3 comments
Closed

Add option to disable code formatter #20

decimad opened this issue Mar 11, 2019 · 3 comments

Comments

@decimad
Copy link

decimad commented Mar 11, 2019

The vscode clangd addin seems to auto-install clang formatting. It would be nice if this could be turned off, as some people might use a different formatting provider.

@sam-mccall
Copy link
Member

Thanks, this isn't something we'd thought about.

Can you help us understand the situation:

  • are you talking about when formatting the document manually, format-on-save, format selection, or format-as-you-type?
  • which other formatting extensions do you have installed?
  • anything special about the files (e.g. language, file extension)
  • what behavior do you currently see, and what do you want to happen?

I'm not sure if this is going to be best solved in the clangd extension or vscode proper, but we should investigate.

@sam-mccall
Copy link
Member

The general case of multiple formatting providers is
microsoft/vscode#41882

You can apparently switch providers for a filetype with right click -> format document with -> configure default formatter.

Does this work for you?

@decimad
Copy link
Author

decimad commented May 9, 2019

I will try, thank you for bringing this up!

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

No branches or pull requests

2 participants