Home Download Buy Blog Forum Support

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

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

Postby rufwork on Thu Aug 16, 2012 2:10 pm

If I have the following in a javascript file I'm editing in SB2...

Code: Select all
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. :D
rufwork
 
Posts: 5
Joined: Wed Jul 11, 2012 2:44 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 21 guests