Try entering this command into Terminal window:
function prompt( ) {">"}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Can someone guide me if there's a way to hide path from the vs code terminal and still be able to receive user inputs?
Try entering this command into Terminal window:
function prompt( ) {">"}
It seems you are using "Code Runner" extension in VS Code.
You can simply clear these extra text by adding the command for clearing the console in "executorMap" of code runner.
Go to Settings.json > Search for "code-runner.executorMap" > search language (C/C++)
change it to :
"c": "cls && cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cls && cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
For Python, you can use coderunner extension. I didn't work for me for C/C++.