Is there a way to get Sublime Text 2 to autocomplete HTML attributes?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)