Skip to content

Options for only rendering leading whitespace characters #15256

@thetrompf

Description

@thetrompf

I like that helix has the option for rendering whitespaces, it really helps when writing in languages that are whitespace dependant. I do however find the render all a bit tedious in the long run, especially between the actual code words and characters. I have searched around and some other editors has the option for only rendering leading whitespace (the indentation whitespace characters), it is a nice way to check if there is mixed indentation (both tab and spaces). Whould it be possible to add support for that in helix as well?

[editor.whitespace]
render = "leading"
# or control each character
[editor.whitespace.render]
space = "leading"
tab = "leading"
nbsp = "none"
nnbsp = "none"
newline = "none"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions