简体   繁体   English

VS Code 终端:清除的代码不断重现

[英]VS Code Terminal: Cleared Code Keeps reappearing

I have been using VS Code (I have the newest version installed) for over 4 months now.我已经使用 VS Code(我安装了最新版本)超过 4 个月了。

Today, I was not able to delete the content in the terminal (powershell extension) anymore - even though I did not actively change anything in settings.今天,我无法再删除终端(powershell 扩展)中的内容——即使我没有主动更改设置中的任何内容。 Anyways, I went to this post and setted up everything (somehow the shortcut was not occupied anymore??).无论如何,我去了这篇文章并设置了所有内容(不知何故,快捷方式不再被占用??)。 Now I am able to clear most of the terminal, but 3 or 4 lines still remain.现在我可以清除大部分终端,但仍然保留 3 或 4 行。

The terminal looks like this now.终端现在看起来像这样。 Between every single query, I cleared the terminal.:在每个查询之间,我清除了终端。:

hello world
PS D:\Web_Dev\Projekte\cs50_project> py a.py
hello world
PS D:\Web_Dev\Projekte\cs50_project> py a.py
hello world
PS D:\Web_Dev\Projekte\cs50_project> py a.py
hello world
PS D:\Web_Dev\Projekte\cs50_project> py a.py
hello world

But I want this:但我想要这个:

PS D:\Web_Dev\Projekte\cs50_project> py a.py
hello world

I tried restarting pc and vs-code, changing all shortcuts - nothing worked.我尝试重新启动 pc 和 vs-code,更改所有快捷方式 - 没有任何效果。

I finally fixed by resetting all of my personalized keybindings.我终于通过重置我所有的个性化键绑定来修复。 Unfortunately, since I had a lot of them, I do not know which one caused the problem.不幸的是,由于我有很多,我不知道是哪一个导致了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM