vs-shell-format
vs-shell-format copied to clipboard
issue when formatting the truncate command "> poo.foo"
the script input
> somefile.log
Expected
> somefile.log
but it is
>somefile.log
and it's a wrong command.
Noticed the same cheeky formatting behaviour here as well. Is there any setting in VSCode we can do to affect this behaviour? Style preferences of sorts?
in VS Code you can set option "shellformat.flag": "keep_padding"
in the settings.json which fixes it for me. Not fully tested what other side-effect this might have in terms of keeping padding on things that I probably would like to see truncated.
in VS Code you can set option
"shellformat.flag": "keep_padding"
in the settings.json which fixes it for me. Not fully tested what other side-effect this might have in terms of keeping padding on things that I probably would like to see truncated.
@LeoK80
I set the option "shellformat.flag": "keep_padding"
and found that it can't format the code at all
This also breaks things such as
${date +%s}
by turning it into
${date+%s}
Setting "keep_padding" seems to stop this, but also seems to stop pretty much everything else that's useful...