as I remember I used the command cls to clear the terminal, but it doesn't work any longer! I think the reason is of the update. btw when I use cls it just make the last line, first. and when I scroll up I can see the stuff. What should I do?
Asked
Active
Viewed 1,388 times
-1
-
Do you want a command for clearing terminal? – adityanithariya Sep 26 '21 at 15:42
-
reset didn't work, and yes I do – Arshiya Khan Sep 26 '21 at 16:09
2 Answers
1
Go to File -> Preferences -> Keyboard Shortcuts and find the mapping for Clear: workbench.action.terminal.clear then change it to Ctrl + K (unless you want to use some other shortcut)
See this stackoverflow post for more information:
How can I clear the terminal in Visual Studio Code?

martineau
- 119,623
- 25
- 170
- 301

stapmoshun
- 88
- 1
- 7
-
Thanks it worked, but with shortcut k k. Do you know why doesn't cls work anymore? – Arshiya Khan Sep 26 '21 at 16:13
-
@ArshiyaKhavaninzade an update to VS Code must have removed cls functionality. so this shortcut is the next best thing for your convenience. – stapmoshun Sep 26 '21 at 17:07
0
Type
clear
in treminal to clear it.
cls
is a command for Windows Command Prompt

wowonline
- 1,061
- 1
- 10
- 17