Currently, some of the pre-defined live template names are the same as keyword names. So when the user types, for example, erlang foo() -> if<caret>, he gets several completion variants among which there is a live template if and a keyword if with the live template pre-selected. I think, inserting a live template is not a common case scenario, so the behavior is inconvenient.
I propose removing some of the live templates, compensating with improved keyword completion. By completion improvements I mean reusing enter handler logic in order to automatically add \n\n end after a keyword where appropriate.
Currently, some of the pre-defined live template names are the same as keyword names. So when the user types, for example,
erlang foo() -> if<caret>
, he gets several completion variants among which there is a live templateif
and a keywordif
with the live template pre-selected. I think, inserting a live template is not a common case scenario, so the behavior is inconvenient.I propose removing some of the live templates, compensating with improved keyword completion. By completion improvements I mean reusing enter handler logic in order to automatically add
\n\n end
after a keyword where appropriate.