Sublime Forum

Autocompleting HTML tags

#1

Hi,
Is there a possibility to turn on autocomplete ALL HTML tags with a forward slash “/”?

Sublime Text 3 adds “/” to all of the closing tags except i.e. <br>, <img>, <hr>, <meta> or <link> so when I type img and then I press Tab key, it gives me:
<img src="" alt="">
…instead of:
<img src="" alt=""/>

0 Likes

#2

Hi friend

Sublime text 3 works fine.
there’s tags witch closing with / for example. Visit W3Schools.com!
but others not closing with / how. img
look at . https://www.w3schools.com/tags/tag_img.asp

regards

Jose.

1 Like

#3

Thank you for your answer.

I know that some tags don’t have their closing tags with “/”. That’s true, but I have some reasons why I need these forward slashes in all tags and I don’t want to put them manually.

0 Likes

#4

You could make a pull request to update the relevant snippets/completions:

2 Likes

#5

<img>, <br>, … are very correct html without the slashes. I don’t know why we might want to complete those in a different way (xml style) in general.

0 Likes