How to disable the Enter key's auto-completion function

I want to keep only the Tab key for auto-completion, while keeping Enter as the line-break key even when the completion window is displayed. I've disabled all related settings I could find in the configuration, but it doesn't work. Enter still triggers completion.

0
2 comments

Okay, I realized this is actually a keymap configuration. If you search for "Choose lookup item", you'll find settings related to Enter and Tab. I set the non-replace version to Tab and the replace-inclusive version to Shift+Tab, which resolved the issue where Enter often couldn't create a new line.

Although this isn't specifically limited to completion actions, based on my testing, it doesn't seem to alter the keybindings for context actions. If anyone knows whether this "Choose lookup item" affects other operations, please inform me in the thread.

1

Thanks for sharing the solution. As we see it in the code, the shortcut of "Choose lookup item" should only affect the "insert" operation within the completion lookup. 

Thanks,

Tom

0

Please sign in to leave a comment.