Provide commands / bindable shortcuts to toggle more settings (particularly: various hints) #5876
Closed
ferdnyc
started this conversation in
Enhancement
Replies: 1 comment 3 replies
-
Key bindings would work if we had a command for 'Toggle Inlay Hints'. Then you could bind a key to it. Turns out there's an extension that does exactly what you want written by @rebornix: I believe that would accomplish what you want to do. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pylance has many settings to control the level of hinting that's performed when viewing Python code, but it appears that all of those are exclusively that: Settings.
The more of those settings I enable, the more often I find myself wishing I could quickly toggle one of them off.
Inlay hints are extremely helpful in some codebases, but in others they become an almost incomprehensible amount of visual clutter. I'd love to be able to bind a keyboard shortcut to toggle them off, in those situations, or even just go to the Command Palette and run a "Pylance hide inlay hints" command, but it doesn't appear that's possible.
I notice that clangd has a number of commands which can also be bound to shortcuts, including
clangd.inlayHints.toggle
/"clangd: Toggle inlay hints". It'd be great if Pylance offered similar.Beta Was this translation helpful? Give feedback.
All reactions