VScode 1.67 toggle inlay hints is awesome
code.visualstudio.com/updates/v1_67
VSCode 1.67 introduces toggle inlay hints.
Inlay hints is sometimes useful when I want to know types of variables or functions. However it is usually overdoing. And it makes me difficult to move cursor position to correct position. I often set cursor to wrong positions. This annoys me a lot.
Too much type inaly hints. I don't always want to know type information.
Toggle inlay hints solves my problem. VSCode 1.67 adds onUnlessPressed
and offUnlessPressed
to editor.inlayHints.enabled
. onUnlessPressed
means that inlay hints are not displayed while Ctrl+Alt
is pressed, while offUnlessPressed
means that inlay hints displayed while Ctrl+Alt
is pressed.
I set it as offUnlessPressed
. So I can see type information only when I press Ctrl+Alt
as below.