New VS Code 1.67 feature can toggle rust-analyzer's inlay hints with Ctrl+Alt
I just updated my Visual Studio Code, and while looking at my settings, I saw that editor.inlayHints.enabled had its false value highlighted as "invalid". Turns out, it changed on the new April 2022 version, with the new toggle inlay hints feature, which works perfectly with rust-analyzer.
I adjusted editor.inlayHints.enabled to offUnlessPressed, and now the inlay hints are hidden by default. But while I keep Ctrl+Alt keys pressed, they show up. I found this amazing. I had a specific keyboard shortcut to toggle it, but now I need it no more.
Just wanted to share this tip.