Skip to content

Visual Studio Code Notes

Tips and Tricks

General

  • To open the terminal, use `ctrl+``.
  • To rename very occurrence of a variable in a file, use ctrl+f2
  • You can also use f2 to rename the variable at the cursor
  • To refactor something, highlight the code and use ctrl+shift+r

Rust

To hide inlay hints until you press ctrl+alt, add the following to your settings.json:

settings.json
1
2
3
4
...,
"[rust]": {
    "editor.inlayHints.enabled": "offUnlessPressed"
},

To increase the characters shown in inlay hints, add the following to your settings.json:

settings.json
...,
"rust-analyzer.inlayHints.maxLength: 50,