Vscode如何用快捷键清空terminal内容?

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.

keyboard shortcuts

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"
}

Powered by Jekyll and Theme by solid

本站总访问量