I work with SublimeClang and SublimeCodeIntel and they sometimes get their auto-complete wrong. For example, I will type:
g_PhysicsQ->Add
and auto-complete pops up “add_rigid_body” instead of “Add”. Now, I’m fine with the auto-complete sometimes being wrong, in fact, I’m used to it coming from a Visual Studio/VAX background. My response is to normally ignore the auto-complete and keep typing. In the above example, as soon as I type “(” the auto-complete kicks in and replaces my code with:
g_PhysicsQ->add_rigid_body
This is crazy annoying - I don’t want pressing “(” to auto-complete! I’ve tried commenting out the following key bindings as they appear to trigger it (“insert_snippet” ?):
{ "keys": "("], "command": "insert_snippet", "args": {"contents": "($0)"}, "context":
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
]
},
{ "keys": "("], "command": "insert_snippet", "args": {"contents": "(${0:$SELECTION})"}, "context":
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
This doesn’t work. Any ideas?