-
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] Allow customisation of inlay hint styling #6405
Comments
If there are any options like Regular, Small, Smallest, I'd consider the current inlays being the "Smallest" - really hurts an eye in the reading glasses. Never thought I'll be crying out for some "accessibility". |
would also be nice to be able to configure the font size directly, as well as color. I'd like to take a crack at this |
Code might support these natively at some point, so we might throw away your work, though. |
Also note, that this feature is 100% about VSCode plugin *.ts files in https://github.com/rust-analyzer/rust-analyzer/tree/master/editors/code directory, no But in case you still want to do that, here's a very related PR that changed hint styles: #8617 Anyway, you have to do something essentially similar: adjust editor related decorations' styles here Also consider:
|
With the changes of #11445 is this no longer an issue? I came looking to see if anyone had tips for customizing inlay hints but ended up just finding them myself... leaving this here in case others come looking, these are the various VSCode settings I have found related to inlay hint styling:
I think this means this issue can be closed, but perhaps is helpful for others looking for the settings to customize their hints as they wish. Maybe there could be a documentation change that could point people to the right settings that would be a little more discoverable? |
@ian-h-chamberlain good summary. Do you want to file a PR to the manual (it's in this repository, under |
Sure, I'll see if I have some time to do this soon |
We have changed to the native inlay hints of VSCode, changing font and font size is now possible 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>
I personally don't like the new smaller inlay hints, and I think it would be great to be able to customise it.
It was introduced here: #6394
Discussion of customising was held here: #6380
The text was updated successfully, but these errors were encountered: