You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Editor: Detect Indentation is false, I expect the formatter to use Editor: Tab size as the number of spaces YAML files use for tabs. Instead, it always auto-detects space number. I am trying to reformat a mess of YAML files to all 4 space tabs. But it keeps defaulting to 2 space tabs. Even with Editor: Detect Indentation = false, and Editor: Tab size = 4
This is also a bit of a workaround for the autodetection sometimes detecting 4 space formatted files as 2 space. Even after freshly formatting them as 4 space and reopening the file. I would love a number of spaces setting specific to the YAML extension.
Expected Behavior
If Editor: Detect Indentation is false, Editor: Tab size should be forced as the number of spaces in tabs for all files upon format save.
Current Behavior
YAML spaces per tab is always autodetected. Regardless of the state of Editor: Detect Indentation
Steps to Reproduce
Make a yaml file with 2 space indentation.
Change Editor: Detect Indentation to false and Editor: Tab size to 4.
Reload file / vscode.
In the bottom bar, select indentation "spaces" will be 2, [ctrl + s] will format the file to 2 space indentation, not 4.
Environment
Windows
Mac
Linux
other (please specify)
The text was updated successfully, but these errors were encountered:
* Provide completion for schema ids in modeline redhat-developer#560
potential improvements:
- support range when there is already a value provided
- provide completion for local yaml schema files
Extracted a specific file for modeline related things.
fixesredhat-developer#560
Signed-off-by: Aurélien Pupier <[email protected]>
* Add completion for schema URI im modeline comment
Signed-off-by: Yevhen Vydolob <[email protected]>
Co-authored-by: Aurélien Pupier <[email protected]>
Describe the bug
When
Editor: Detect Indentation
is false, I expect the formatter to useEditor: Tab size
as the number of spaces YAML files use for tabs. Instead, it always auto-detects space number. I am trying to reformat a mess of YAML files to all 4 space tabs. But it keeps defaulting to 2 space tabs. Even withEditor: Detect Indentation
= false, andEditor: Tab size
= 4This is also a bit of a workaround for the autodetection sometimes detecting 4 space formatted files as 2 space. Even after freshly formatting them as 4 space and reopening the file. I would love a number of spaces setting specific to the YAML extension.
Expected Behavior
If
Editor: Detect Indentation
is false,Editor: Tab size
should be forced as the number of spaces in tabs for all files upon format save.Current Behavior
YAML spaces per tab is always autodetected. Regardless of the state of
Editor: Detect Indentation
Steps to Reproduce
Editor: Detect Indentation
to false andEditor: Tab size
to 4.select indentation "spaces"
will be 2, [ctrl + s] will format the file to 2 space indentation, not 4.Environment
The text was updated successfully, but these errors were encountered: