visual-studio-coderustrust-analyzer

How do I hide the "Run | Debug" above main() text in vscode?


I normally run my application from the terminal directly so this text just adds a bit of noise. Any idea how to remove it?

enter image description here


Solution

  • Set rust-analyzer.lens.run.enable and rust-analyzer.lens.debug.enable to false in a settings.json file. Note this will also disable lens on tests.