Shortcut for brackets "[ ]" on Mac OS

Hi all I would like to know if it's possible to add or change a keyboard shortcut to make brackets "[ ]". They are available by doing Alt + Shift + ( but I would like to change it or add one to just do Cmd+ ( for example at least one thing faster because in programming I will win a lot of time (in my opinion) haha. Thanks in advance ciao!

(I'm on MacOS Sierra)

7

5 Answers

On latest MacBook Pro it works like this:

  • ⌥ alt+5 : [

  • ⌥ alt+6 : ]

  • ⌥ alt+8 : {

  • ⌥ alt+9 : }

I would love to have them as shortcuts on the touch bar together with the pipe-symbol | (= ⌥ alt+7) and the backslash \ (= ⌥ alt+Shift+7)!

1

alt + 8 worked for me in MacBook Pro and I believe for programming it's convenient.

1

In my case using macbook pro 2019 13-inch azerty

option + shift + ( : [
option + shift + ) : ]

I finally found out the easiest way to write square braket, braces and perenthesis by mac type keypad. alt+shift= {, only alt= [ and shift= (

1

I have been searching for this myself, and I think there's not one specific answer to this question. I think it depends on the keyboard layout (Language). I have MacBook Pro 2018 with Norwegian keyboard, and I found that the following key combinations works for me:

Option + 8 = [
Option + 9 = ]
Option + Shift + 8 = {
Option + Shift + 9 = }

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like