作者:阳阳的微薄之歌 | 来源:互联网 | 2023-09-03 03:37
VSCode如何用快捷键清空terminal内容?https:stackoverflow.comquestions48713604howcanicleartheterminalin
VSCode如何用快捷键清空terminal内容?
https://stackoverflow.com/questions/48713604/how-can-i-clear-the-terminal-in-visual-studio-code
Open up the Keyboard Shortcuts
with Ctrl+K, Ctrl+S. Then click on the {}
next to the Keyboard Shortcuts
tab to open up the keybindings.json
file.
After doing so, find some open space anywhere in the file, and type in the key bind below.
{
"key": "ctrl+k",
"command": "workbench.action.terminal.clear",
"when": "terminalFocus"
}