-
Notifications
You must be signed in to change notification settings - Fork 120
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
Indent style and size are ignored for default (*
) wildcard
#343
Comments
I have this issue as well. Here are the settings via CLI $ editorconfig app/client/src/bundles/bundle.js
charset=utf-8
end_of_line=lf
indent_size=2
indent_style=space
insert_final_newline=true
trim_trailing_whitespace=false
tab_width=2 And here is what VS Code is reporting: For reference, here is my root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = false
[*.{json,php}]
indent_size = 4
indent_style = space |
I think it might be related to #341 and microsoft/vscode#168836 |
Yeah, I'm seeing this too. I have a project that has no .vscode indentation settings, and an .editorconfig specifying Previously, if you made a new file in the project, VSCode would show "Spaces: 2" in the status bar. Now it shows "Spaces: 4 (Tab Size: 2)", and indents to 4 spaces on tab key press. (If I remove the .editorconfig file, then it shows "Spaces: 4" instead. This shows that the .editorconfig is being recognized but isn't having the proper effect.) |
VSCode team has just released 1.74.1 update and now problem is gone 🎉 Closing the issue. |
Please fill-in this template.
code --disable-extensions
and the issue did NOT present itself.Delete the following condition if it doesn't apply to your case:
If the extension is not picking up the expected configuration for a file:
npm install editorconfig -g
and raneditorconfig [file-in-question]
and the configuration was what I expected. If not, please file on theeditorconfig-core-js
issue tracker.Issue
1.74.0
0.16.4
Root
.editorconfig
FileAre there any other relevant
.editorconfig
files in your project? Yes / Noeditor.insertSpaces
true
____
____
editor.tabSize
4
_
_
editor.trimAutoWhitespace
true
____
____
files.autoSave
"off"
"___"
"___"
files.insertFinalNewline
false
_____
_____
files.trimTrailingWhitespace
false
_____
_____
File opened
./hello.md
Expected behavior
indent_size = 2
Actual behavior
indent_size = 4
Actually VSCode says following in status bar:
Spaces: 4 (Tab Size: 2)
.Additional comments or steps to reproduce
Tried to disable
editor.detectIndentation
- still no luck, VSCode keeps ignoring[*]
settings and uses 4 spaces.The text was updated successfully, but these errors were encountered: