We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indent_style = space
The file is:
#!/usr/bin/env bash if [[ true ]]; then echo 1 # leading with 4 spaces fi
And shfmt will change the leading spaces to tab:
My ~/.editorconfig:
~/.editorconfig
root = true # Unix-style newlines with a newline ending every file [*] end_of_line = lf insert_final_newline = true indent_style = space indent_size = 4 [*.sh] indent_size = 4 indent_style = space shell_variant = bash binary_next_line = false switch_case_indent = true space_redirects = true keep_padding = true function_next_line = false
The text was updated successfully, but these errors were encountered:
What shfmt version are you running? Did you double check this? Because we have code and tests for this feature, so this seems odd.
Sorry, something went wrong.
Sorry for the missing information. I'm using the latest version 3.9.0:
added cat -T to visualize the tabs
cat -T
OS ENV:
> uname -a Linux ringo 6.10.8-arch1-2.1-g14 #1 SMP PREEMPT_DYNAMIC Sat, 07 Sep 2024 06:01:43 +0000 x86_64 GNU/Linux
No branches or pull requests
The file is:
And shfmt will change the leading spaces to tab:
My
~/.editorconfig
:The text was updated successfully, but these errors were encountered: