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

CSS How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

Workspaces: 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
Calvin Nix
43,828 Points

Yeah... 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.

I 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?

-removed-

Calvin Nix
Calvin Nix
43,828 Points

After a certain amount of points in a specific skill then the user can access the auto-indent. Haha sounds good!

Great. Now we need to get this noticed by someone who can implement that! :D

Argh, I keep double posting for some reason. (-removed-)

Daniel Temiagin
Daniel Temiagin
5,741 Points

sometimes my workspace auto indent for me once i tap the enter on my keyboard but won't do the closing for me.....

Daniel Temiagin
Daniel Temiagin
5,741 Points

sometimes my workspace auto indent for me once i tap the enter on my keyboard but won't do the closing for me.....