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 trialKristine Vinogradova
4,739 PointsHow do you get control and closed bracket key on Mac Book Pro?
I cannot find a way to use control and closed bracket key on Mac book Pro
3 Answers
Jason Larson
8,361 PointsAfter seeing in Mario's other question that he has already tried cmd + Alt + ] and that didn't work, then I would propose that you use a different keyboard shortcut altogether. If you go to File --> Preferences --> Keyboard Shortcuts, you can go down to the "Indent Line" command and click the little pencil icon to the left of it and then define your own keyboard shortcut.
Jason Larson
8,361 PointsAccording to this reference, it should be Command + ]. (It's the 8th item under Basic editing.
You should be able to access this same reference within VS Code by going to Help --> Keyboard Shortcuts Reference.
Mario Luna Ostos
Front End Web Development Techdegree Student 6,350 PointsHello, I have been trying the proposed solution but the main problem is that the symbols (+), (*) and (]) are in the same item. Therefore, the only way to get a (]) is pressing alt + ]. Therefore, It's not really working when I press cmd + ], because the computer would take it as another command.
thanks in advance for your time :)
Jason Larson
8,361 PointsIf you were typing into a text editor, what would you press on your keyboard to type the ]? What would you press to type the + or *? If, for example, you have to press Shift + (+/*/]) to enter the right bracket, then the sequence should be cmd + Shift + ]. If you have to press Alt + (+/*/]) to display the right bracket, then the sequence would be cmd + Alt + ].
Mario Luna Ostos
Front End Web Development Techdegree Student 6,350 PointsMario Luna Ostos
Front End Web Development Techdegree Student 6,350 PointsJason thanks a million for your answer. I was finally able to do it.