Configuring Visual Studio Code for Rust

  1. When I compile a program in VSC using F5 and get errors, the compiler output stays in the Terminal window and lets me investigate the details. When the program compiles without errors but possibly with warnings, the compiler output disappears as soon as the program starts executing. In this case, how do you keep the compiler output?

  2. Problems in the source code found during compilation are marked by underlining the suspicious code with a red line, sometimes many code lines. This makes the code difficult to read because you basically lose small characters like a dot or comma. Is there any way to get rid of this underlining?

  3. There is an extension that adds inlays to the source code showing the types of the variables, return values, etc. Which extension is it, and how do you switch the inlays on and off?