Glitch keeps fighting my indentation

For example, if you edit https://glitch.com/edit/#!/vine-sponge by placing your cursor after </div> and pressing “Enter”, the resulting line is indented two spaces. But, all the surrounding lines are not indented at all.

This makes for a frustrating editing experience, as every time I type a new line, paste content, or similar, I have to fix the indentation.

1 Like

You may realize this, but it’s fighting you because you’re inside the <html> tag. Unfortunately, I’m not aware of a way to disable the auto-indent, so my the only advice I have is to give in and indent it, which is not terribly helpful!

Yep. This (plus Why is there a scary red dot at the bottom of my code? and Support for .mjs files (ESM module loader)) have made me largely give up on using the Glitch code editor. Instead I work in Visual Studio Code and then periodically copy and paste the results into Glitch when I want to share with others. Pretty frustrating :(.