[英]VSCode: Python running in terminal shows many dirs
Every time I run a python code in VSCode the terminal shows several dirs, like: the project directory, the venv directory and the python file that's being executed, like this:每次我在 VSCode 中运行 python 代码时,终端都会显示几个目录,例如:项目目录、venv 目录和正在执行的 python 文件,如下所示:
(.venv) E:\Python\projetos\Projeto Scraping>"e:/Python/projetos/Projeto Scraping/.venv/Scripts/python.exe" "e:/Python/projetos/Projeto Scraping/app/scraper.py"
Is there a method to shorten this?有没有办法缩短这个?
尝试使用 Code Runner Extension,您可以使用Ctrl
+ Alt
+ N
快捷键。
You can use Code Runner extension.您可以使用Code Runner扩展。
After downloading and installing, add the following configuration to your settings.json
file and you will get clean output in the OUTPUT panel.下载并安装后,将以下配置添加到您的
settings.json
文件中,您将在OUTPUT面板中获得干净的 output。
"code-runner.runInTerminal": false,
"code-runner.clearPreviousOutput": true,
"code-runner.showExecutionMessage": false,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.