When I try running a python code the output terminal displays the location where .py file is located in the white-colored text followed by the "&" sign and then the place where Python is installed as well as the file containing the Python code in blue text. I have no problem with the white text but earlier my VScode did not display this blue text, it's cluttering the output, is there any way to get rid of it.https://i.stack.imgur.com/CUeL4.jpg
Asked
Active
Viewed 163 times
0
-
use prompt command – Yeshwin Verma The Programmer Apr 22 '21 at 06:02
-
Even after using prompt the blue text shows up again – S_G Apr 22 '21 at 06:05
-
possible dup? https://stackoverflow.com/questions/63758560/how-to-hide-the-file-path-displaying-in-visual-studio-codes-terminal – Thavas Antonio Apr 22 '21 at 06:07
-
Does this answer your question? [Visual Studio Code Java paths in terminal](https://stackoverflow.com/questions/60513567/visual-studio-code-java-paths-in-terminal) – Yeshwin Verma The Programmer Apr 22 '21 at 06:08
-
Search SO for all the other people that have asked the same question – rioV8 Apr 22 '21 at 10:57
1 Answers
1
At present, there is no direct way to omit the path information of "Terminal" in VS Code. This information shows us the path of the python interpreter used and the path of the executed file when executing the run command.
Workarounds:
Please use the setting in "launch.json":
"console": "internalConsole",then clickF5to debug the code, "DEBUG CONSOLE" will only display the result.You could use the VS Code extension "Code Runner" and use the settings in "settings.json":
"code-runner.showExecutionMessage": false,then click "Run Code":
Reference: Python debug configurations in Visual Studio Code.
Jill Cheng
- 7,195
- 1
- 13
- 22