Hello. I've managed to get rust to work in VSCode,with syntax highlighting and debugging via the RLS and the Rust extension. However,I made a basic hello world program,and when I debug it and it opens a external terminal to display the output,the external terminal is only open for about .5 seconds before it closes itself. Is there a way to keep the external terminal open?
I'd recommend using the integrated terminal in vscode to run your rust programs, but in the case you wanted to use the external console, the following can work:
use std::io::stdin;
fn end() {
println!("Press enter to continue");
stdin().read_line(&mut String::new());
}
fn main() {
//Your code
end();
}
from your config and remove the trailing comma.
Note that the integrated terminal is different than the debug output terminal (Which is what this would use).