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.

JavaScript JavaScript and the DOM (Retiring) Responding to User Interaction Listening for Events with addEventListener()

Tab Indent Spaces being weird

Hi, not strictly a coding question but whenever I'm on my workspace following along with a video and hit tab to indent the new line, my tab space always goes to approximately half way along the page. This happens regardless of whether I have Tab Size 2 or Spaces 2.

Am I doing something wrong with the workspace? Currently I'm downloading and following along in vs, but it's getting kind of annoying.

Thanks for your help!

2 Answers

Steven Parker
Steven Parker
218,861 Points

That is weird indeed. So what happens if you change the offset to another value, say 4?

the spaces change accordingly when I change it. On my workspace for this video, on some lines it indents correctly, and then on others the spacing is random e.g. line 29, line 41.

Steven Parker
Steven Parker
218,861 Points

Totally bizarre. You might try running that by the Support folks. Do post back here if you figure it out!