6

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?

Ian S.
  • 1,831
  • 9
  • 17
blue_note
  • 27,712
  • 9
  • 72
  • 90

1 Answers1

7

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.

Ian S.
  • 1,831
  • 9
  • 17