Home > Enterprise >  Cancel Autosuggestion in Visual Studio Code with a custom button
Cancel Autosuggestion in Visual Studio Code with a custom button

Time:05-19

I'm staring to use Visual Studio Code. I want to cancel the auto complete with a custom button. Right now it involves pressing the escape button which is very awkward. I really want to use the right arrow button to cancel the suggestion. Is there a way to set this?

I had to turn off the acceptSuggestionOnEnter because it really messed up my workflow.

The best I have been able to do is,

editor.acceptSuggestionOnEnter: "off"
editor.tabCompletion: "on"

But again, I'd like to use the enter button to accept, I just want to be able to cancel the suggestion with the right arrow key instead of the escape.

CodePudding user response:

Set the hideSuggestWidget keybinding to the right arrow.

  • Related