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 Basics Structuring Your Content Grouping Content with <main> and <div>

I am failing to Indent code all at once

I have just tried to follow instruction learnt on how to indent code all at once, I have highlighted the part I meant to indent and pressed CTRL + ) keys simultaneously but nothing happens. I am using a Lenovo edge laptop if that matters.

To indent code, you press TAB. Highlight all code and press TAB.

3 Answers

Steven Parker
Steven Parker
231,248 Points

If you're using the workspace editor, the shortcut to indent is CTRL + ] (close bracket), not CTRL + ) (parenthesis).

You can also un‍indent using CTRL + [

Thanks to both of you, both methods worked i.e TAB and CTRL +]

You can also highlight the code and press Tab to move it to the right or Shift + Tab to move it to the left