Reputation: 3
I want the terminal to just show a clean output of my code when I run it. I'm trying to get rid of the highlighted text in this screenshot.
I already changed the PS prompt in my profile to "> " but there's still some text every time I run my code.
Upvotes: 0
Views: 318
Reputation: 9767
This is how vscode works, it will display the executed command on the command line. If you don't like it, an alternative is to use the Code Runner extension. After the installation is complete, add a configuration in settings.json, and then use Run Code
to run the code, and the result will be output in the OUTPUT panel.
"code-runner.runInTerminal": false,
"code-runner.clearPreviousOutput": true,
"code-runner.showExecutionMessage": false,
Upvotes: 1