Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Structuring Your Content Marking Up a Blog Post

Renee Zona
PLUS
Renee Zona
Courses Plus Student 3,843 Points

How does he line up the opening and closing tags so when he separates them they are nicely indented on the same level?

He types an opening tag and it autofills a closing tag. Great. Then it looks like he hits enter twice and it lowers the closing tag but it is still lined up perfectly on the same indented level as the opening tag above it. When I hit enter (and I've tried shift and enter keys together also), it lowers the closing tag and indents it significantly. This doesn't look as good and is harder to follow. How does he just get the opening and closing tags to automatically line up so nicely?

4 Answers

Steven Parker
Steven Parker
216,014 Points

It sounds like you are describing editor functionality. Are you using a different editor that the one being used in the video?

Renee Zona
PLUS
Renee Zona
Courses Plus Student 3,843 Points

No, I'm using the same workspace. I launched it from inside the html course.

Steven Parker
Steven Parker
216,014 Points

If you make a snapshot of your workspace and post the link to it here, we could try to replicate the issue.

Willemijn B
Willemijn B
5,577 Points

This might not solve your problem entirely, but clicking View > Indent Guides (so it's ticked) in the workspace might help a little!

Kristaps Vecvagars
Kristaps Vecvagars
6,192 Points

You shouldn't worry too much about indentation, because many text editors can do it automatically, if there's a feature for it. For example, if you're using Atom text editor, you can install a special "beautify" package that will indent your structure as needed every time you save your project.