5
3
Is there a way to make Notepad++ auto-complete words on Tab instead of Enter?
Currently, if want to type, say, frame
, then Enter to begin a new line, instead the Enter will select the first auto-complete suggestion, like frameElement
:
I do want the auto-complete feature, but I'd rather have a key like Tab do the actual selection, because Enter is frequently purposed toward starting a new line, whereas Tab is rarely used to indent after a word (since indenting is usually done at the start of lines), and so perhaps would be better repurposed toward auto-completion.
1Finally found out how to do it: remove "Enter" in SCI_NEWLINE – Deqing – 2016-06-14T05:34:18.707
There are two components to this problem: the Enter hotkey triggers SCI_NEWLINE, and SCI_NEWLINE commits autocompletion. The accepted answer deals with the latter, while this answer deals with the former. Changing the hotkey for SCI_NEWLINE is a simple change in a menu (I rebound it to Alt-Enter), while preventing SCI_NEWLINE from committing autocompletion requires editing and rebuilding the whole program from source (every time you want to change this). This answer is far superior.
– TigerhawkT3 – 2019-01-15T23:35:19.073After this change pressing the enter key types a
CR
instead ofLF
. Also the auto-indentation feature no longer works. – AXO – 2020-02-20T13:40:09.823@AXO, thanks for the update. Please note that this answer was from 4 1/2 years ago and likely much has changed since then. The accepted answer was from nearly 2 years later - go figure! :-) – Julian Knight – 2020-02-21T17:42:20.823
What is the name of the shortcut mapping? I don't see it anywhere. – Jon – 2014-06-13T20:59:43.080
I've added appropriate screenshots – Julian Knight – 2014-06-13T21:07:55.890
Yeah, but which specific one is it? There's ~40 of them and I don't see it. – Jon – 2014-06-13T21:16:49.587
1Tab is 10 and Enter is 9 – Julian Knight – 2014-06-13T21:23:41.507