There does not seem to be any way to edit this from within Xcode. It is registered as an alert sound
. It works just like if you tried to close out of Finder
with cmd + q
. It is handled on a system level.
You can, however, disable all of these alert sounds.
Step 1: Go to system preferences
.
Step 2: Open up the Sound
menu.
Step 3: Drag the little arrow of Alert Volume
to 0.
That is all that is technically necessary to disable the alert you hear when you type }
, )
, or ]
without a prior opening brace/bracket. Some others also like to uncheck Play user interface sound effects
because it removes some other annoying beeps and buzzes.
It is on the same page as the alert volume: