Sublime Forum

Front-End Development

#1

Hello everyone! Can somebody tell me why sublime text does not write all html structures. I mean when I write html and press Tab, there is only open and close html tags, no DOCTYPE, title, body… What is wrong? Thank you in advance!

0 Likes

#2

probably easier if you tell us rather than us guessing :wink:

probably you have a third party package installed that overrides it somehow… disable them until it starts working again :wink:

does the html snippet appear if you set the syntax to HTML and then goto Tools menu -> Snippets…?

0 Likes

#3

Yes, html snippet appears when I go to Tools menu - Snippets. The all code appears, but when I delete it and after that I write the code again, I have the some problem - there is only open and close html tab as before. So how to save this settings or what can I do to work all the time?

0 Likes

#4

Works for me. If you have the HTML5 package installed, and assuming that you have set the syntax to HTML, then you have to press ENTER after TAB. If you don’t have HTML5 installed, then just TAB should do it.

0 Likes

#5

I tryed to discribe what is wrong before, maybe is something with the settings, but is still not working

0 Likes

#6

It is difficult to know exactly what you are doing, but I think that your best bet would be to create your own template with HTML selected, then save it. When you want to create an HTML document, open the template you saved, then work from there filling it in. Otherwise you have to press TAB every time. You could also create a snippet with the template, but I don’t do that. Why do you delete the template that is created from the snippet?

0 Likes

#7

Hello! Before when a wrote html and pressed tab the code is automatically written like this

!DOCTYPE html
html
head
title/title
/head
body

/body
/html

Now when I do the some and press tab
there is appears only
html/html
That is the proplem. Every time when I open new file I have to go to Tools menu -> Snippets…What is wrong?

0 Likes

#8

You must have installed a package that is doing that. You will have to disable your packages and enable them one by one to find out which package is causing the problem. Then delete or change the offending package.

1 Like