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 How to Make a Website Creating HTML Content Add Image Gallery Content

Peter Wellmann
Peter Wellmann
654 Points

How to indent Lines - Mac not working well!

Hi,

my name is Pi and I am trying to indent some code lines. Nick Pettit says I just have to press CMD + [] the brackets. But when I do so, nothing is going to happen. I am using a Mac and also having the Mac keyboard. I can create the brackets by pressing alt + figure 5 or 6.

Anyone who can help me to indent my text?

Thanks a lot!

2 Answers

Padraic Histon
Padraic Histon
8,460 Points

Hi Pi,

From your description is sounds like you are pressing the CMD + both bracket keys at the same time. If this is the case then what you need to do is just hold down 'CMD + ]' to indent and 'CMD + [' to out-dent. Hope this helps.

Peter Wellmann
Peter Wellmann
654 Points

Hey Padraic,

thanks for your support. I guess I didn't describe it good enough. I am using CMD + ] or [ but nothing is going to happen. I also have changed my keyboard language from German to English to fix it. Unfortunately it does not work.

Maybe I have to change some settings inside my Mac?

Hello, I have exactly the same problem. Does anyone know how to do it?

Thanks in advance for your time