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 trial

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
229,005 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
229,005 Points

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