-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Allow cusomizing the hotkey that shows/hides inlay hints #149019
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
Comments
This comment was marked as spam.
This comment was marked as spam.
Yes, this would be amazing to have. Currently I have them set to offUnlessPressed, but I sometimes want to turn them on - because I'm teaching or need a screenshot. A command to toggle them on, and then back to off / offUtillPressed would be very helpful. |
Would be great, because in VS Code on my system Ctrl+Alt activates the menu bar, places the focus there (I have just enabled the feature, I don't know how normal this is? So I don't know about this on Windows yet). Seems kinda buggy to me (especially because other applications do not show this behaviour on my system). |
I've tried this feature for 15 minutes, and my hand already hurts. Ctrl-Alt is an ok combination to press once, but for holding it's terrible. In addition, or as an alternative to customizing this hotkey, maybe consider adding a proper hotkey that allows to toggle the hints, rather than require to hold. |
This comment was marked as spam.
This comment was marked as spam.
I don't see why this wasn't a toggle in the first place. Type hints are most useful when you actually have a type error, or want to refactor the types, or are trying to understand someone else's code. Those are activities that take up a low proportion of my time overall, but when I'm doing them I don't want to have to hold down an awkward key combination, which prevents actually modifying the code while (after a short delay) seeing the hints! |
Related on Stack Overflow: How can I change the inlay hints keyboard shortcut in Visual Studio Code? |
TL;DR - I think my problem would be solved if I can customize the show/hide inlay shortcut to some other key combination to avoid conflicting with my I'm on MacOS and my keyboard workflow heavily relies upon the HYPER key using Karabiner-Elements. And my setup is using As you can see, because the the show/hide inlay shortcut is also using For example, in this video I have Screen.Recording.2024-09-21.at.11.34.19.mov
|
The other issue is that
This is very annoying as I usually want to jump directly to the definition. AFAIK there is currently no way to get the desired behaviour unless I'll use |
Currently the setting
"editor.inlayHints.enabled": "{on,off}UnlessPressed",
forces you to use CtrlAlt to show/hide the inlay hints.I think it would be great to support customizing this hotkey, for example I'd bind one of the F keys to it.
The text was updated successfully, but these errors were encountered: