When I look at the actions bound to "Escape" on Visual Studio Code, there are a lot of them used to quit out of something.
I'd just like the functionality of being able to hit "ctrl" to cancel the autocomplete function.
Which one of these commands should I use? (I have tried "hideSuggestWidget" and "list.clear", neither of them work.)
(As seems to be the theme with these sorts of questions, in Atom, I'd just use the key-binding-resolver, but Visual Studio Code doesn't seem to have that yet.)
This works:
{
"key": "ctrl+q",
"command": "hideSuggestWidget",
"when": "suggestWidgetVisible && textInputFocus"
},
{
"key": "escape",
"command": "-hideSuggestWidget",
"when": "suggestWidgetVisible && textInputFocus"
}
but you see I used Ctrl-Q because just binding to the Ctrl button would do nothing. It seems you cannot bind a command to only the Ctrl button.
So, the "hideSuggestWidget"
appears to be the right one with associated "when"
clauses. I would be interested to know if it is possible to bind only to the Ctrl button.