dotnet / dotnet/roslyn

Inline Hints should snap to the character grid when using a Monospace font.

Open
#73,649 0 comments 0 reactions 1 assignee Claimed by @JoeRobich View on GitHub
Area-IDE
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

With inline hints on, monospaced code is not always laid out nicely in a grid.

![Image](https://github.com/dotnet/roslyn/assets/611219/1055e188-4ee7-49fb-85e1-185682bb8a59)

The two possible solutions to this are
1. Have the inline hint text use the same font family and font size as the other code. This is what VS Code does.
2. Grow the inline hint width to be a multiple of the rendered character width. This would need to take into account when the user is not using a monospaced font.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.