panel icon indicating copy to clipboard operation
panel copied to clipboard

YAML Tab Characters

Open Hwiggy opened this issue 3 years ago • 0 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Replace all tabs in YML with spacing of a defined width when saved in editor

file_content.replace("\t", " ".repeat(tab_width))

An alternative solution would be to consider making the tab character distinctly visible as a tab character in the editor

Describe the solution you'd like.

YML files cannot utilize tab characters anyway, and visually they might appear the same in the editor. If a parser does not call out the tab character, runtime indentation errors could be introduced and hard to track down, since tab characters and spaces of a defined width appear same in the editor.

Example, image Line 323 is indented with a tab character whereas 324 utilizes spaces

Additional context to this request.

No response

Hwiggy avatar Aug 14 '22 07:08 Hwiggy