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 trialAnthony Hitti
3,846 Points'ENTER' creates a lot of white space on the next line
Whenever I press the 'ENTER' key to go to the next line in workspaces, the next line indents itself by 12 spaces.
I must have pressed something on the keyboard to make this happen but I can't for the life of me figure out how to fix it.
1 Answer
Anthony Hitti
3,846 PointsMike Keefe , I believe I figured it out. The problem seems to be caused by the parenthesis not being started and completed on the same line (line 8 of your example).
Not sure why it occurs but closing the parenthesis on the same line, in my JavaScript, fixed the problem I was having.
Mike Keefe
2,770 PointsMike Keefe
2,770 PointsI'm having this problem in Workspaces too, although it seems to be intermittent.
Screen recording example: https://i.imgur.com/qlKaVbP.mp4
This is happening in Google Chrome, Version 89.0.4389.90 (arm64) on macOS Big Sur.