-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VSCode] Feature request: allow modifyable font size for type hints #6883
Comments
The reason it is smaller is that it stands out more from the surrounding text to give the user the hint that it has been placed there by the editor. This is a convention in both IntelliJ and Visual Studio. That said if you would like to change it the relevant code is here: |
But IntelliJ adds padding so that it still conforms to the spacing of the normal font, does it not? |
Ahh... Maybe! PRs welcome! |
Is there a workaround to change the decoration (e.g. some local CSS change I can make to VSCode) until the extension has been corrected? |
8617: Add option to opt out of smaller font size for inlay hints. r=SomeoneToIgnore a=jmederosalvarado As requested on issue #6883 this PR provides an option for users to opt out of the smaller font size for inlay hints. Part of #6883. Co-authored-by: Jorge Mederos Alvarado <jmederosalvarado@gmail.com>
Closes rust-lang#6883 This functionality was changed as of rust-lang#11445 and now can be customized using native VSCode settings instead of `rust-analyzer`-specific ones.
With the change to native inlay hints, this is now doable via |
11708: Update manual for inlay hint customization r=Veykril a=ian-h-chamberlain Related to #6405, #6883 but not sure if they should be closed or not as this is just a documentation update. This functionality was changed as of #11445 and now can be customized using native VSCode settings instead of `rust-analyzer`-specific ones. Co-authored-by: Ian Chamberlain <ian-h-chamberlain@users.noreply.github.com>
Closes rust-lang#6883 This functionality was changed as of rust-lang#11445 and now can be customized using native VSCode settings instead of `rust-analyzer`-specific ones.
Currently type hints/annotations are in a slightly smaller size than regular text. The setting for this is seemingly fixed at 2 (?) sizes smaller than the Editor: Font Size (editor.fontSize) setting in VSC settings. This leads to the following text being slightly offset from lines above and below, as can be seen in the screenshot. Please let us detach the sizes or have an option for how different they can be.
The text was updated successfully, but these errors were encountered: