Skip to content

Optimize the user experience when line gets too long after inlay hints are inserted. #3138

Closed
@crlf0710

Description

@crlf0710

Generally the code is usually formatted with the rustfmt, which keeps the characters per line below a certain limit. However when inlay hints get inserted, the lines sometimes gets too long, or even trimmed by screen edge.

Not sure what's the best solution for this. Maybe when a line will become too long after inlay hints are inserted, move all the hints out of line into a separate line using tiny font sizes as annotations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inlay-hintsinlay/inline hintsA-vscodevscode plugin issuesS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions