Closed dorian-marchal closed 4 years ago
In fact, I blamed the changelog and it has been copied from vscode-elixir-ls, so the explanation is there:
It may take some getting used to, but I highly recommend leaving
acceptSuggestionOnEnter
off and using usingtab
instead ofenter
for autocomplete. In Elixir, it's very common to end a line with an identifier (such as:error
, for example), and ElixirLS will sometimes try to autocomplete that (into:error_handler
or:error_logger
, for example). If you're typing quickly, you may hit enter before even noticing the suggestion and insert it by mistake. Automatic completion ofdo
blocks is handled separately and does not require you to accept an autocomplete suggestion.
I'm used to pressing Escape when I see a suggestion at the end of the line, so I'm gonna disable that:
"[elixir]": {
"editor.acceptSuggestionOnEnter": "on",
},
Thanks for the detailed explanation. :+1:
When this setting is enabled, I expect ElixirLS suggestions to be accepted on Enter.
It seems to be intentional since
v0.2.16: 7 Mar 2018
(see the Changelog):But I don't find the explanation in the README.