Lokmane Ammar
Lokmane Ammar

Reputation: 3

How do I remove the dir path from the powershell terminal in vscode?

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

Answers (1)

JialeDu
JialeDu

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,

enter image description here

Upvotes: 1

Related Questions