Just started using ST2 for CFML etc. and love it. Impressed with everything it can do and how it can be customized. But I did come across one shortcoming that I can't believe there's not a package for.When you want to enter HTML special characters like &quot; &nbsp; etc. there's no autocomplete. I type & and nothing happens. I've searched and searched for a solution. What am I missing? Is making a autocomplete file more complicated because I want to see the actual character and insert the code. I've tried encode but it's not what I'm looking for- as I then have to figure out how to type in a weird character Omega, umlaut whatever...Thanks for any ideas / help

Some characters are defined as word separators. As such, I don't believe they will trigger completions, even if they do exist. Try creating a syntax specific setting (though you could just make it a user setting if you want). You will modify the "word_separators" entry. The value for this entry will be "./\\()\"'-:,.;<>~!@#$%^*|+=[]{}`~?". I just removed the ampersand from the default settings.

Thanks. I removed the & from word_separators string in my preferences.sublime-settings file and restarted ST2 as suggested.Still no autocomplete on &. So I'm guessing by this that all I need now is an autocomplete file that has those definitions in it.I'm using the coldfusion package. Shouldn't autocomplete for & characters be in an HTML package or somewhere. Thx Again

You can quite easily create auto complete definitions by yourself by creating files with the .sublime-completions extension in your user packages folder.

While you are in Sublime press Ctrl + Shift + P to bring up the command palette.Type in "Browse" and you should see an option named "Preferences: Brows Packages".Press enter on that option and your packages folder should open up in an explorer window.

Now go into the "User" folder and create an "HTML.sublime-completions" file.It can be called anything really, just as long as it has the ".sublime-completions" extension.

I got these entities from a list I found and copied from Google, then just put them in the correct JSON format for a .sublime-completions file.You will need to keep the & character out of your word separator list as stated above otherwise the auto-completions won't work since they start with &.

Now all you need to do is type & and choose the correct auto-completion.If the auto-completion box doesn't appear, try pressing Ctrl + Space while the caret is immediately after the & sign or whatever you want to complete.

It is possible to define all of these completions without the "trigger" and "contents" parts, but I left them in so you can easily change things if you want.For example you could remove all of the & and ; signs from the triggers so that "amp" would auto-complete for "&amp;".

That's actually the way I would personally do it since it saves on typing the & sign to start the auto-completion and it means you don't have to mess around with the word separator symbols.But like I said, I thought I would leave them in so you can change it in any way you want.