Edited html file.

You must enter this code:

<div class="lala"> <p>Text</p> </div> 

The difficulty occurs at the place of input of the <p> .

Scenario:

1 step

 <div class="lala"> 

2 step

 <div class="lala"> </div> 

3 step. Set the indented cursor (1 tab)

 <div class="lala"> | </div> 

4 step. We start to enter and it turns out like this:

 <div class="lala"> <p>Text</p> </div> 

Where the indent disappears when you enter text. If you put it again - then everything is saved. But each time twice indenting is very tedious. Tell me, please, how can this be fixed?

enter image description here

  • You Emmet unknowingly do not use, or for that there are some other reasons? Less to write much, and indents do not need to be corrected. Thank. - Sasha Chernykh
  • I have not reproduced your problem, additional data is needed. But when there is an Emmet, I suppose it is better not to suffer with her. Thank. - Sasha Chernykh
  • Unknowingly. I'll try it. But in this case it seems to me that something else can be done. - Skywave 3:32 pm
  • Skywave, in this book , starting on page 146, would recommend reading about Emmet. It tells about little-known useful features. - Sasha Chernykh

1 answer 1

Personally, I don’t reproduce the problem of a top-starter: the tabulation does not disappear. Additional information is needed, only, in my opinion, this will be unnecessary work for both the questioner and the respondent when there is an Emmet plugin.

How to enter the code in question:

Emmet not used

Counted 27 keystrokes or combinations thereof.

How to type the exact same code using Emmet:

Emmet used

12 keystrokes or their combinations against 27 - we have more than a double gain in time. I also have no problems with indentation.

There are plenty of Emmet materials on the web, I would recommend reading the Sublime Text Power User book from page 146, which tells about the little-known features of the plugin.

  • one
    When put emmet - the problem also disappeared - Skywave