I’m trying to disable auto completion inside comments and strings and failing. The default auto_complete_selector value “source - comment” is not working for HTML or Python comments, at least. Examples:
<!-- autocompletion activates inside here for HTML -->
# activates after the hash character for Python
"""
also activates inside triple quoted areas
"""
Checking cmd-alt-p, for HTML the comment block scope is shown as text.html.basic and comment.block.html, and for Python comment.line-number-sign.python and string.quoted.double.block.python.
I’ve tried various values for auto_complete_selector like “source - (comment, string.quoted)”, but nothing seems to work, the autocompletion is activated regardless of the setting.
I’ve customized the tab auto completion somewhat, the current setting in my User keymap file is:
{ "keys": "tab"], "command": "auto_complete", "context":
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "has_next_field", "operator": "equal", "operand": false },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\w$" },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
}
Any clues?