shfmt config file? #989
Unanswered
DawsonMyers
asked this question in
Q&A
Replies: 1 comment
-
For config files, see https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd. Your first code block does not get formatted as the second, as long as you don't replace |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I was wondering if there's a ways to customize how shfmt formats the code, like a .shfmt file or something like that? I find that it's very opinionated about case statement formatting.
Here's how I want my code to look:
But this is how it's being formatted:
Is this possible with shfmt?
Beta Was this translation helpful? Give feedback.
All reactions