question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an option to prevent using Enter to select completions

See original GitHub issue

When 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

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
bcolsencommented, May 13, 2020

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 use tab 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’).

  • Enter accepts code completions. (# Checked by default)

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’ 😃

2reactions
ccordoba12commented, May 14, 2020

We’ll take a look at this for 4.2.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found