Add an option to prevent using Enter to select completions
See original GitHub issueWhen a typed method name is matched exactly with suggestion’s, I have a “press Enter twice or click away or press space” overhead for any linter suggestion. I understand the linter suggestion also includes a docstring excerpt, or that a ‘complete’ method name can be another method name’s substring, but my request can be handled as follows:
- If typed method matches any linter suggestion exactly, then automatically [Enter] the suggestion upon typing, without consuming the next keystroke - unless the input extends a method’s name (i.e. is alphanumeric or underscore)
- So, if I type
.stem
and Enter, I should newline (the Enter isn’t consumed by the linter) - Can make this a configurable so current behavior remains an option
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Notepad++: disable enter key for auto-complete - Super User
In Settings -> Shortcut mapper -> Scintilla commands. Double click SCI_NEWLINE (should be item 9 in the list), select Enter and remove it....
Read more >visual studio - How to prevent enter key from making new line ...
1) If you use Visual Studio Intellisense(make sure you choose Visual ... choose Never add new line on enter by Tools --> Options...
Read more >Intellisence / Autocomplete - pressing enter creates a new line ...
When using Intellisence / Autocomplete I cannot use the 'enter' key to select an option anymore. Tab works, but enter now just creates...
Read more >How to Disable the Browser Autocomplete and Autofill on ...
To disable the autocomplete of text in forms, use the autocomplete attribute of <input> and <form> elements. You'll need the "off" value of...
Read more >Turn automatic completion of cell entries on or off
If you want to stop automatic completion, you can turn this option off. Click File > Options. Click Advanced, and then under Editing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The easiest thing to do here is to give an option to have
enter
not complete it ever. I would activate that as I always usetab
to complete.My only complaint about @OverLordGoldDragon is the difficulty in explaining the option in the preferences, while disabling enter is pretty easy(and covers the use case if you are into ‘tab’).
This could go along with disabling “tab” #12682.
As an aside tab will start a completion and accept it but you can’t accept the completion with ctrl+space or whatever you set the completion hotkey too. This would be quite important if you disabled ‘tab’ and ‘enter’ 😃
We’ll take a look at this for 4.2.0.