vscode-custom-local-formatters
vscode-custom-local-formatters copied to clipboard
Not every formatter accepts STDIN
In such a case, it might be simpler to just provide the file path to the formatter. Is that possible?
Thank you.
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 -
Brilliant @ajstensland it's working with black-with-tabs. Thanks