Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sublime 3 adds extra angular bracket on autocomplete

I find on sublime 3 that if I autocomplete code I sometimes get an extra angular bracket.

for example, If I start writing "<ht", I get an option to autocomplete the html tag, but the code produced looks like this:

<<!DOCTYPE html> <!-- Extra angle bracket here -->
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>

Which is quite annoying. How do I fix this? I'm not sure on what other autocompletion it does this. I'd like to start using the feature more once I know how it works and if I can adjust it to my style

like image 761
Zach Smith Avatar asked Jun 14 '15 10:06

Zach Smith


1 Answers

Don't start off the tag with <. Just type ht and then press Tab, and you'll have your desired result. The same goes for any other tag.

p + Tab will create <p></p>, etc.

like image 190
Saad Avatar answered Sep 29 '22 13:09

Saad