I’ve been trying ST4 today, and I can’t get tab completion to work how I want. I’m writing Perl code, and I can’t work out how to configure it to include words found in the same file in comments or quotes in the list of possible completions. I found the default setting:
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
which I think means “do autocomplete in tag scope or (in source scope but not in comments, single or double quoted blocks or here docs)”. But is there a control for what gets included in the list of possible completions?
The confusing behaviour I now see is that completion does not work in source scope on a word which is in a double quoted block elsewhere in the file, but completion on that same double quoted word does work in double quote or comment scopes!