Sublime Forum

C If statement Auto-complete Inconsistency

#1

I’m having an issue with the C syntax auto-completion functionality. I get inconsistent behavior when I’m typing.

If I try to type the following:

if ( int_state ) 
{ 
    ... 
} 

Sometimes sublime shows this as above with the correct formatting.

Sometimes sublime outputs the following:


if ( int_state )
    {                     <-- Notice extra tab insertion
        ...
    } 

I can not consistently have it auto complete to one or the other. I will type it and the second format version will appear, then I will delete the if statement and try again from scratch, and I will get the appropriate behavior as expected (no tab insertion). I can deal if it was one way or the other, but when it is inconsistent - it drives me absolutely crazy.

Does anyone else see this behavior? Am I hitting some special key combination when I type really fast that is causing this? And if so how do I turn it off?

Edit:

Build 2181 - MAC OS X 10.6.8

0 Likes