-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Allow Option to Not Autocomplete on Enter #4799
Comments
Yes this is super annoying when trying to create a newline. I use Ctrl-Z then Enter. For every newline that ends in a letter. How do people live with this?? No solution here either: https://superuser.com/q/1048224/13889 |
Agreed, I have the same issue often. Autocomplete should only be triggered by TAB not ENTER. |
We turn autocomplete OFF. Seriously, autocomplete is not usable in Notepad++. |
https://superuser.com/a/1057259/340929 suggests that there might be a simple solution for this issue:
|
@Uhf7 proposed a sensible long-term solution for the standard distribution in this comment. |
Auto-completion currently use both ENTER and TAB to insert the selected item, in some circumstance people have to ENTER twice to have 1 newline feed. in this commit, 2 options (ENTER & TAB) are given in Auto-completion settings, so users can choose one of these 2 keystrokes (or both, or none). By default ENTER is disabled and TAB is enabled. Fix notepad-plus-plus#4799, fix notepad-plus-plus#4631, fix 8389, fix notepad-plus-plus#10915
…ed item, in some circumstance people have to ENTER twice to have 1 newline feed. In this commit, 2 options (ENTER & TAB) are given in Auto-completion settings, so users can choose one of these 2 keystrokes (or both, or none). By default ENTER is disabled and TAB is enabled. If auto-completion is disabled and completion is triggered manually, then the settings of ENTER & TAB won't be considered, both ENTER & TAB will be able to insert the selection. Fix notepad-plus-plus#4799, fix notepad-plus-plus#4631, fix notepad-plus-plus#8389, fix notepad-plus-plus#10915, close notepad-plus-plus#11016
While I like autocomplete, it sometimes gets in the way. When I'm at the end of the line, I press enter as soon as I'm finished typing the last word. However, very often this inadvertently triggers the autocomplete which means I have to stop typing, drag my mouse up to the previous line, highlight the word, retype the original word, and then press escape and then enter, This takes way too long and is a serious interruption to my train of thought.
I tried to fix this by going into the scintilla shortcuts and changing sci_newline from enter to shift+enter. Although this fixed my autocomplete issue, it also had the unintended consequence of notepad++ interpreting enter as only carriage-return. Pressing enter no longer put a newline! That caused auto-indentation to fail and my code to be broken.
What's more, when I tried to remap sci_enter back to enter, I was unable to because enter was not a valid option. At that point I just uninstalled and reinstalled notepad++.
My suggestion: Add an option to not auto-complete on enter (just tab). Also, it probably would be a good idea to allow sci_enter to be bound to enter.
The text was updated successfully, but these errors were encountered: