I have encountered some pretty odd auto indentation behaviour when writing out some nested div tags.
- Code: Select all
<body>
<div id="hi">
<div id="hei">
</div>
</body>
Imagine that I have that code structure. When I press enter with the cursor at the end of the "<div id="hei">" line, it auto indents into the same position as the starting tag, which is fine.
I type </ and it is still all fine - I start to type div, and it moves the indentation back a tab for god knows what reason so the end result is...
- Code: Select all
<body>
<div id="hi">
<div id="hei">
</div>
</div>
</body>
instead of the intended...
- Code: Select all
<body>
<div id="hi">
<div id="hei">
</div>
</div>
</body>
I don't want to turn auto indention off completely, as it can be quite useful. But this behaviour gets pretty damn annoying when I am trying to quickly type out a layout.
Is this a bug, or intended behaviour?
Thanks.