Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRenee Zona
Courses Plus Student 3,855 PointsHow 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
231,275 PointsIt sounds like you are describing editor functionality. Are you using a different editor that the one being used in the video?
Renee Zona
Courses Plus Student 3,855 PointsNo, I'm using the same workspace. I launched it from inside the html course.
Steven Parker
231,275 PointsIf you make a snapshot of your workspace and post the link to it here, we could try to replicate the issue.
Willemijn B
5,577 PointsThis might not solve your problem entirely, but clicking View > Indent Guides (so it's ticked) in the workspace might help a little!
Kristaps Vecvagars
6,193 PointsYou 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.