-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
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
Option -i seems not working anymore in VSCode V1.31.1 #28
Comments
on your setting
|
Hello, |
the value of |
What about |
I have editor.tabSize set to a value of 4, and I have the shell-format extension installed in my VS Code. Whenever I tell the editor to format an open shell script file, I get a pop-up telling me to configure editor.tabSize. It is configured, already. |
Same issue for me and error when I try to format a bash file. the issue has been solved for me by changing the settings to |
Setting both places will cause inconsistency, so the |
Edited and formatted indent also inconsistent |
#v5.0.1 support both |
Hello,
In VSCode I cannot set the increment anymore (my shfmt version is 2.5.1)
Whatever the -i number I used I have 5 whitespace in my script.
Please note
I really think it is not linked to shfmt himself but it's integration in VSCode.
Perhaps something is running at 'Format document' after shfmt which change the indent to '5'
But I have no idea of how I can debug this.
Note than before this was integrated to the 'system' Format Document, I had no problem ... I am so sad ...
In order to help you, is there a way to debug this?
Thanks in advance for your help, regards,
Pierre
The code
#!/bin/sh
if [ "${a}" = "a" ]; then
echo "toto"
echo "toto" > tata
fi
the options:
"shellformat.flag": "-i 0 -p -ci -sr -kp",
"shellformat.path": "E:\programfiles\shfmt\shfmt.exe",
"shellformat.showError": true,
The text was updated successfully, but these errors were encountered: