-
Notifications
You must be signed in to change notification settings - Fork 82
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 by 4 instead of 2 spaces #902
Comments
See redhat-developer/vscode-xml#902 why this now uses 4 instead of 2 space indendation.
Used e.g. for vorburger/ch.vorburger.exec#120. Unfortunately uses 4 instead of 2 spaces; see redhat-developer/vscode-xml#902.
What's funny is that even (some of, it's inconsistent) the examples on https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md are intended with 2 instead of 4 spaces... Maybe I'm missing something - if so, it's probably worth to clarifty better in docs? |
See redhat-developer/vscode-xml#902 why this now uses 4 instead of 2 space indendation.
Nothing are hard coded. We use standard format settings from vscode, I mean editor.insertSpaces and editor.tabSize |
@angelozerr duh! I see. Sorry, I'm dumb - that wasn't clear to me. I'll propose a small PR to add a line to the doc. |
Any contribution are welcome! |
Signed-off-by: Michael Vorburger ⛑️ <mike@vorburger.ch>
- Fixes redhat-developer#902 Signed-off-by: Michael Vorburger ⛑️ <mike@vorburger.ch>
- Fixes #902 Signed-off-by: Michael Vorburger ⛑️ <mike@vorburger.ch>
Is 4 space indention currently hard-coded?
I (now) prefer 2 instead of 4 space indendation in XML files.
It's also recommended e.g. on https://maven.apache.org/guides/development/guide-documentation-style.html for
pom.xml
.I tried to look for a configuration to change this on https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md, but couldn't find any....
The text was updated successfully, but these errors were encountered: