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 trialmattlebl
10,849 PointsWorkspaces: Closing brackets?
Hey there, I was thinking that it'd be really great if, when we're working on a CSS class and we type a curly-brace and hit enter, Workspaces would indent and put a closing curly-brace on the next line. Right now you need to do the whole process: Open curly, enter, enter, close curly, up, indent. With this it would be much less tedious.
Any takers?
4 Answers
Calvin Nix
43,828 PointsYeah... if you use more powerful text editors like Sublime Text, they automatically do this for you.
I'm going to guess that the only reason that they wouldn't include this is so that we can get more practice while we learn.
Something being tedious isn't necessarily a bad thing when you are learning.
Calvin Nix
43,828 PointsAfter a certain amount of points in a specific skill then the user can access the auto-indent. Haha sounds good!
mattlebl
10,849 PointsGreat. Now we need to get this noticed by someone who can implement that! :D
mattlebl
10,849 PointsArgh, I keep double posting for some reason. (-removed-)
Daniel Temiagin
5,741 Pointssometimes my workspace auto indent for me once i tap the enter on my keyboard but won't do the closing for me.....
Daniel Temiagin
5,741 Pointssometimes my workspace auto indent for me once i tap the enter on my keyboard but won't do the closing for me.....
mattlebl
10,849 Pointsmattlebl
10,849 PointsI guess you're right, and a workaround for the "you should learn it before it automates things for you" would be to have the auto-indent turned off by default, and after the student learns and practices proper formatting, they'd be able to turn on more automatic formatting. Sound good?
mattlebl
10,849 Pointsmattlebl
10,849 Points-removed-