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

HTML

How did you tab the closing bracket and semi colon forward with the cursor in front of them? 2:19

Can this be done in sublime or any other text editor?

3 Answers

Steven Parker
Steven Parker
243,228 Points

Most editors have some key combination that performs indentation. In the Workspace, you hold "control" while you type close bracket "]". You can also move things left instead of right with "control" and open bracket "[".

Check your editor documentation for how to do it.

Oh, so it fixes overal indentation?

Steven Parker
Steven Parker
243,228 Points

I'm not sure what you mean by "fixes". But the indentation shortcut moves the currently selected line(s) over one stop each time you do it.

Well then what do you mean by performs indentation? Because my question was how did he move the closing bracket and semi colon forward with the cursor being all the way at the end of the line? (see 2:19) Normally if i would want to move a line forward one tab i would put my cursor in front of the line (all the way to the left) and press tab. But here it's done with the cursor being all the way at the end, it would save me time if i didn't have to move my cursor all the way left.

I'm a shortcut freak btw.

Steven Parker
Steven Parker
243,228 Points

By "performs indentation" I mean "moves the line over". The "ctrl-]" trick moves the entire line over no mattter where the cursor is on the line.

I'm sorry i misunderstood, but that did it! Thank you!