Skip to content

Code editor line wrapping #2872

@a0405u

Description

@a0405u

I think it might be a good idea to add an option for soft line wrapping in the code editor. By that I just mean visual line wrapping, the actual lines shouldn't be affected.

We have quite limited line length (I'd say excessively limited), so either we get lines that are going outside of the screen or we should always try to manually wrap them. Small font helps a bit, but we are still limited to the visible line length the is less than 60 columns. Manual wrapping is inevitable, even if we try to limit ourselves with ninja-style variable names.

I guess optional automatic line wrapping will save some time and make the editing a lot less frustrating. Even with it enabled you still can wrap lines manually, so it should not break any user experience. But since it's optional it should not matter. I expect huge quality of life improvement.

1  function polynomial(x, y)
2    local z = x + y + x * y +
       x * x + y * y
3    return z
4  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions