简体   繁体   中英

Sublime text autocomplete bug (HTML Tags)

There has been a little bug with my Sublime Text 3. When I try auto-completing some HTML tags, a extra '<' is inserted before the first tag, making me have to go back and manually delete it every time I autocomplete tags. I am using build 3176 and I have tried rolling back to 3170 but the issue still occurred. The odd thing is that on my main PC, even though I have the same version of Sublime Text, the bug does not occur there. I have included images below of my issue.

Before pressing tab:

After pressing tab:

What happens is, it looks like you are using Emmet . You gotta give only the tag name and it completes.

Eg:

div→
<div></div>

a→
<a href=""></a>

link→
<link rel="stylesheet" href="" />

img→
<img src="" alt="" />

Try to leverage the use of Emmet this way. You have a huge list of Cheat Sheet to make use of too. It's really a feature and not a bug. :)

只需输入您想要的简短版本,可能是<p></p> 'p',然后按选项卡,而不是输入,它将自动完成。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM