Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2: Autocompleting html escaped characters (starting with ampersand)?

I just started using Sublime Text and it's becoming my favorite editor by far.

A quick question though: Is it possible to configure/use a plugin to autocomplete special html characters, for example typing & and get a list of suggestions for &, " etc?

like image 836
mistalaba Avatar asked Aug 08 '12 18:08

mistalaba


1 Answers

Sublime Text comes with a built-in special character encoder. Highlight the text you'd like to encode, hit Ctrl+Shift+p, and type HTML: Encode Special Characters.

If this isn't good enough and you'd like actual autocompletion, you can add to the HTML autocomplete list. Go to "Browse Packages" in the main menu then edit HTML/HTML.sublime-completions and add the autocompletions to the end of the list of autocompletions.

like image 126
Matt York Avatar answered Nov 15 '22 16:11

Matt York