Skip to content
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

Indentation of list #195

Open
claywd opened this issue Oct 24, 2019 · 3 comments
Open

Indentation of list #195

claywd opened this issue Oct 24, 2019 · 3 comments

Comments

@claywd
Copy link

claywd commented Oct 24, 2019

VSCODE Settings

"[yaml]": { "editor.formatOnSave": false, "editor.defaultFormatter": "redhat.vscode-yaml", "editor.tabSize": 2, "editor.detectIndentation": true, "editor.insertSpaces": true, "editor.autoIndent": false },

apparently the tabSize must be greater than 0... How about a list specific tab size because yamllint is a serious pain but useful tool and the automatic indention of list (unnecessarily) is a headache.

Current outcome when editor.tabSize is 2
Screen Shot 2019-10-24 at 12 55 04 AM

desired outcome when edition.listTabSize is 0 (yes I am requesting this key be added)
Screen Shot 2019-10-24 at 12 55 16 AM

@OctavioBR
Copy link

My two cents, as suggested by @MarkKharitonov, I believe a boolean is enough: indentLists

@so-jelly
Copy link

so-jelly commented Jun 4, 2024

frustrating this is still not working correctly after so long. i keep trying to use the redhat vscode extension, but keep using this https://marketplace.visualstudio.com/items?itemName=kennylong.kubernetes-yaml-formatter for formatting

@snarlysodboxer
Copy link

I can't have indented sequences, so I'm using yamlfmt with conform.nvim, and turning off formatting in yaml-language-server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants