vscode-custom-local-formatters icon indicating copy to clipboard operation
vscode-custom-local-formatters copied to clipboard

Not every formatter accepts STDIN

Open bilogic opened this issue 2 years ago • 2 comments

In such a case, it might be simpler to just provide the file path to the formatter. Is that possible?

Thank you.

bilogic avatar Mar 27 '23 15:03 bilogic

A workaround for me is using the special - argument as a file path to read the file contents from STDIN.

e.g. If your formatter expects a file path like this: formatter file.ext ...then you may be able to provide this instead: formatter -

ajstensland avatar Jun 14 '23 06:06 ajstensland

Brilliant @ajstensland it's working with black-with-tabs. Thanks

dhjw avatar Sep 28 '23 13:09 dhjw