Re:Supercharge your Sublime Text 3 to increase your producti...
by trishume on Friday January 20, 2017 @02:55PM
(#13446526)
I set my autocomplete/snippet expansion key to tab (it's a Sublime setting) so that I never have any conflicts.
Sublime actually tries harder than other editors to avoid these, but it's not perfect. See for example https://github.com/sublimehq/Packages/blob/master/Ruby/Compl... which stops it from autocompleting on common end of line keywords in Ruby. This wasn't a default in Emacs so I had to spend a couple of hours figuring out how to do this myself before I could do newlines: https://github.com/syl20bnr/spacemacs/pull/174
I'm not sure there are any editors that have auto-complete on enter but don't have any issues with conflicts.
So typing ">" + Enter or even " " + Enter inserts the <a href=""></a> snippet. So I literally can't insert a newline at the end of any content without hitting escape.
Doesn't seem to happen in other languages. But I couldn't find how or why or how to prevent it. So I gave up. In a related note, I found documentation a bit limited.