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 Introduction to HTML and CSS (2016) HTML: The Structural Foundation of Web Pages and Applications The Basic Structure of a Web Page

Diego Romero
Diego Romero
939 Points

Indenting more than one line at a time.

I was wondering how can I do to indent more than one line of code at a time, if it's possible.

2 Answers

Steven Parker
Steven Parker
231,198 Points

In the workspace editor, if you select (highlight) multiple lines and then hold the CTRL key while you type a close bracket (]), all the highlighted lines should be indented by one tab stop. Similarly, you can un-indent with CTRL-[.

Some external editors use this same command, but you'd need to check the documentation for the particular editor to be sure (or just try it!).

Diego Romero
Diego Romero
939 Points

It worked! Being able to do that is very useful. Thank you!