Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

can vscode insert inlay hints in the code?

I’m writing in rust, but probably the same holds for other languages.

When I type eg let x = 5, vscode shows let x: i32 = 5, where the : i32 part is an inlay hint. Is there any way to make vscode insert that hint into the actual code??

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Yes, if you hit Ctrl + ., then use the arrow keys to select "Insert explicit type `ty`" then hit enter, it will insert it for you.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading