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 trialNina Björkendal
796 Pointsindent by one space- macbook pro
How do I indent by one space on my machine? I have a MacBook Pro and Scandinavian (Norwegian) keyboard. To make a square box bracket I therefor press alt+8 or 9. But Command + these keys doesn´t do the anything when trying to practice writing codes here at treehouse.
Im stuck... Please help:-)
5 Answers
danielcroft
7,438 PointsI thought it was just the tab key? is your question how do i indent or making square brackets?
Nina Björkendal
796 PointsHow to do indent. It would be nice to be able to do it to larger masses of text thats already written in code... If I use the tab key on each line then its easy to get it all mixed up. I thought...
The course says to use command +square bracket to this...
Maybe I´m complicating things here:-)
danielcroft
7,438 PointsAh right im not sure my self how to do it on a large block of text just single lines.
Nina Björkendal
796 PointsWell if you have a square bracket symbol on your keyboard you should be able to do it in combination with either command or control button.
sdfasdfagasdgasdg
475 PointsIf you use an editor such as Sublime Text (you should) you can press CMD + ] to indent and CMD + [ to outdent selected text. Many other editors support this shortcut. If it doesn't work, you could always use SHIFT + CMD + / to search the menus for an "Indent" option :)