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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Dylan Latimer](https://secure.gravatar.com/avatar/3886babb4d4915c60d36912070581227?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Dylan Latimer
1,188 PointsHow do I make a stupid square bracket!
Can someone help me!? How do I do a square bracket!!!
3 Answers
![Jennifer Nordell](https://uploads.teamtreehouse.com/production/profile-photos/5432702/micro_jen-square.jpg)
Jennifer Nordell
Treehouse TeacherHi there! In addition to the answer left above, if you are attempting to use a square bracket in the console provided with the workspace, and you are not working with a US keyboard, then you will need to do something different here. If you are not working from a Windows system, you will need to temporarily change your keyboard to be that of a US keyboard as otherwise, the key mappings will be off.
However, if you are working from a Windows system, you have another option called "Alt codes". This technique also requires that you have a number pad on your keyboard as it will not work with the numbers along the top of your keyboard. Holding down alt and pressing 9 and then 1 will result in the open square bracket [ while holding alt and then pressing 9 and 3 will result in the closing square bracket ].
You can find a complete list of alt code here: https://www.alt-codes.net/
Hope this helps!
![Sondre Fjellving](https://uploads.teamtreehouse.com/production/profile-photos/9888302/micro_sondre.jpg)
Sondre Fjellving
4,700 PointsThis sure helped me. Thanks for taking your time to share this! It made my life a lot easier hahaha. Good day to you :))
![Simon Bazso](https://secure.gravatar.com/avatar/6dc87fe46070c9d11f4aea638208a293?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Simon Bazso
1,162 PointsI have the same issue and then alt codes doesnt seem to work in the workspace enviorment, only outside. Just as my normal hard braclets would work. Any tip? Cant even copy paste even though that would be an extremly painful way.
![micram1001](https://uploads.teamtreehouse.com/production/profile-photos/3390832/micro_WIN_20180813_15_43_10_Pro.jpg)
micram1001
33,833 Points[ ] <-- Could copy and paste after googling square bracket (opening and closing).
![Beau Genereux](https://secure.gravatar.com/avatar/ed3d1618ffd1636576613470b2fdf740?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Beau Genereux
5,362 PointsJust a quick heads-up, on macOS Mojave v10.14.6 with a French Canadian keyboard, the square brackets are alt-option + 9 for [ and 0 for ] but it only works in the file editor, not in the console.
When I hit alt-option + 9 or 0 for the [], the console automatically writes (arg: followed by either key I tapped.
I wish I could upload a video to explain this better.. but it's strange. Maybe this is a bug?
Thank you!
Michael Hulet
47,912 PointsMichael Hulet
47,912 PointsHey Dylan! I understand you're frustrated, and that's ok, but please refrain from using profanity in the Community