Is there a way to get Sublime Text 2 to autocomplete HTML attributes?
editor, sublimetext2
Solution
Autocomplete is enabled by default when you use "<" and your tag and then hit enter. So if you enter `<p` and then hit enter it will finish out the tag pair for you... where you will end up with `<p></p>` and your cursor will be in the middle. You can change this to tab if you prefer by pasting the following into your Preferences -> Settings - User file:
{
"auto_complete_commit_on_tab": true
}
This will override the default value of false for completion on tab. Again that is only if you wish to use tab instead of enter.
Problem
I was wondering if there is a way to get Sublime Text 2 to autocomplete HTML attributes like in Aptana?