Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
73 views
in Technique[技术] by (71.8m points)

python - how to clear the vscode terminal when I run the code again?

Is there a way in Visual Studio Code to clear the previous code in the terminal every time I execute the code. It's very annoying to type clear every time I wanna run the code again (or to run another file).

question from:https://stackoverflow.com/questions/65649841/how-to-clear-the-vscode-terminal-when-i-run-the-code-again

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

To clear Terminal in VS Code simply press Ctrl + Shift + P key.
type command Terminal: Clear.
go to View in taskbar upper left corner of vs code and open Command palette.
I think Ctrl + K should do the trick too if you are in windows, or else you can make shortcuts for clearing the terminal using VS Code shortcuts(keybindings file).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...