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 trialUSHASHA RODRICK MANJE
5,445 PointsI 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.
3 Answers
Steven Parker
231,275 PointsIf you're using the workspace editor, the shortcut to indent is CTRL + ] (close bracket), not CTRL + )
(parenthesis).
You can also unβindent using CTRL + [
USHASHA RODRICK MANJE
5,445 PointsThanks to both of you, both methods worked i.e TAB and CTRL +]
Bonnie Scott
472 PointsYou can also highlight the code and press Tab to move it to the right or Shift + Tab to move it to the left
Jose Chavez
1,691 PointsJose Chavez
1,691 PointsTo indent code, you press TAB. Highlight all code and press TAB.