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

Disable quote formatting

Open jsumners opened this issue 2 years ago • 7 comments

Currently, there is a single option around quoting style: changing the formatter from enforcing " to enforcing '. I would like an option to leave quoting style alone.

jsumners avatar May 25 '22 11:05 jsumners

Does the yaml.format.singleQuote setting work for you?

gorkem avatar May 28 '22 21:05 gorkem

Does the yaml.format.singleQuote setting work for you?

As in would it enforce single quotes? I assume so. But I do not want to enforce any quote style.

jsumners avatar May 29 '22 14:05 jsumners

In that case disabling the formatter with yaml.format.enable is the only choice at the moment.

gorkem avatar May 30 '22 01:05 gorkem

In that case disabling the formatter with yaml.format.enable is the only choice at the moment.

I know. This is why I am asking for better control.

jsumners avatar May 30 '22 12:05 jsumners

Any news/plans for the issue?

Sebor avatar Oct 28 '22 14:10 Sebor

This would be useful when working on large yml files where you just want to format properly but not change hundreds of quotes. I really hope this gets implemented at some point.

zarembas avatar Aug 21 '23 20:08 zarembas

Related:

  • https://github.com/prettier/prettier/issues/5350
  • https://github.com/redhat-developer/yaml-language-server/issues/246

o-l-a-v avatar Mar 01 '24 08:03 o-l-a-v