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 HTML Forms Choosing Options Select Menus

How do I indent a group of selections, instead of indenting each selector individually?

In my workspace it sometimes occurs that I need to indent multiple lines of text. I attempted to do this by highlighting the lines that I needed to indent and then pressing tab. This did not work and erased my code.

3 Answers

Hi, use CTRL + ] to move text right and CTRL + [ to move it left. It works also in Sublime Text which I highly recommend to use :)

It works! Thank you so much.

Also in workspace you can just highlight and hit tab!

Similarly, you can hit Shift+Tab with your code chunk highlighted to un-indent it.

that answer was handy !! "Also in workspace you can just highlight and hit tab!"

thx to "https://teamtreehouse.com/samfortune"

to select mutiple chunks of code at once hold CTRL+ALT(win) or CMD+CTRL(mac) while highlighting desired selections, then CTRL+[ or CTRL+] to move.

You can save yourself quite a bit of time this way.