VSCode: How to perform "Clear Search Results" in "Find in Files" without using the mouse?
Update:
Now you can add keybindings for these commands. Example:
{
"key": "cmd+escape",
"command": "search.action.clearSearchResults",
"when": "editorTextFocus"
}
The best way to find these commands is by searching in the Keybindings editor. The others are search.action.refreshSearchResults
and search.action.collapseSearchResults
.
Original answer:
Not yet, but there is an open feature request to allow it: https://github.com/Microsoft/vscode/issues/23558