Is there a way of getting Sublime 3 to autocomplete in HTML class attributes when the word contains a hyphen? I have installed a few packages that I thought might help, but none do. I’ve tried:
Emmet
SublimeCodeIntel
AllAutocomplete
I discovered that AutoFileName interferes with autocompletion in CSS files, so I disabled that.
I’ve removed the hyphen from the “word_seperators” setting and this has had no effect. In theory AllAutocomplete should be stuffing the autocomplete list with all CSS selectors, including those with hyphens because I’ve removed the hyphen from word_seperators.
Example: If I have classes in an open CSS file called .foo and .foo-bar then only foo appears in the class attribute autocomplete dropdown. Here’s a screenr:
Surely this is a common need when working with HTML and CSS, especially given that hyphenated words are very common in CSS? Is it just a bug in ST’'s autocomplete code? It works perfectly with an underscore instead of a hyphen so it looks as if autocomplete is ignoring this setting. Double-click and Ctrl-D on a word containing a hyphen confirms the setting is working in that context.