Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: Autocomplete in Debug Console only works with Tab, not Enter

I can't figure out how to make the autocomplete work with Enter in the Debug Console. It's pretty annoying because it's working in the code windows but not in the Debug Console (only Tab autocomplete works there).

Maybe there are some settings I can tweak?

PLEEEEASE HELP it's annoying like a HELL.

like image 723
mimic Avatar asked Dec 03 '25 15:12

mimic


2 Answers

VS Code now has a setting for that: Debug › Console: Accept Suggestion On Enter.

like image 135
Elias Zamaria Avatar answered Dec 06 '25 15:12

Elias Zamaria


I couldn't find the Debug: Console setting on my VSCode. I found another called

acceptSelectedSuggestionOnEnter

but I couldn't assign the key "Enter" to it (it's a known bug in the IDE, I think). So I had to do this by adding the following keyboard shortcut to my keybindings.json file (Cmd-Shift-P -> Preferences: Open Keyboard Shortcuts (JSON)):

{
    "key": "enter",
    "command": "acceptSelectedSuggestionOnEnter"
    "when": "suggestWidgetVisible && textInputFocus"
},
like image 39
Gabriel Petrov Avatar answered Dec 06 '25 16:12

Gabriel Petrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!