Sublime Forum

Javascript autocompletes if... else[tab] with function name

#1

If I have the following in a javascript file I’m editing in SB2…

if (1==1)[tab]{ [tab]alert('some stuff'); }[tab]else

… and then hit [tab] again, Sublime Text turns “else” into a function name from my code that starts with “e”.

I’ve been hitting a space after else and then a tab, but that’s uglifying my code.

Would be nice if SB noticed I was typing else in an if block, but even if not, can I turn off autocompleting words when I’ve already typed “else”? Not many function names that start with else. :smiley:

0 Likes