Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.



i forgot it bruh

2 Answers

The Tab key will indent your lines for you. You are able to change the number of spaces your lines are indented by at the bottom right of your code editor. The usual values used by most programmers is either 2 or 4 spaces.

Hope that helps.

shout out to you bruh... but i thought it was a "shift key" i'm suppose to hold, along with a certain letter key (& this is if i already have a few lines of codes highlighted)

& thanks for the response

@marcus fields, no problem. If you already have code written and wanted to indent it, then you should also be able to go back and indent it simply by highlighting the code and pressing tab.

youre the real MVP bruh