Issue with indentation when closing HTML Tags


#1

I’ve been using atom on my iMac for a while and it works great. Just got a Macbook and I’m having a strange issue that I’ve never experienced before and no one else seems to have seen either!

I have auto indentation set up so that when I open a tag and press return, my cursor is automatically indented.

However, when I come to close the tag I opened, the closing tag is indented too. Like so:

<div>
  <p>
    Content here...
      </p>
        </div>

Whereas, when using Atom previously, the default would be:

<div>
  <p>
    Content here...
  </p>
</div>

Anyone have any idea why this is happening?


#2

Hello.

What you are experiencing is an option that has been switched on by default since Atom V1.32.0.

Please review recent related topics:
(same cause, different symptom)

Error with syntax colouring (shows where to switch off the Tree Sitter Parser option)

HTML no longer highlighting corresponding HTML syntax when selected


#3

Thanks Dan! That’s fixed it for me!