Reputation: 414
I've got freshly installed Visual Studio Code on OSX with only Emacs Keymap extension.
When I'm trying to undo (ctrl + /) the bell sound occurs.
Any idea how to turn it off with this keybinding or for ever? I did not find any sound related settings in VSC configs.
Upvotes: 13
Views: 13376
Reputation: 11
Cmd (Ctrl) + Shift + P > User settings > and add or edit this:
"accessibility.signals.terminalBell": {
"sound": "off"
},
Upvotes: 1
Reputation: 11
Just added "audioCues.volume": 0
in my user settings.json. It works for me \o/
Upvotes: 1
Reputation: 1
For mac users, the alert sound can be muted system-wide from System Preferences > Sound > Sound Effects. Lower the "alert volume" all the way.
Upvotes: -5
Reputation: 363
I did the following
settings.json
"terminal.integrated.enableBell": false
(in
the end of the file, before the closing }
)also, if you want to turn off the sound of the system (Windows), you can take a look here, but I tried and even without the sound, the beep (another even more annoying) still happen inside visual code.
Upvotes: 1
Reputation: 111
For anyone stumbling on this question going crazy for an answer, the issue is related to this: https://github.com/Microsoft/vscode/issues/44070
The bell sound actually occurs when you press Ctrl+/
on any text input box (try it in Chrome address bar and Stickies).
You'll need to rebind the shortcut through DefaultKeyBinding.dict
.
Go to ~/Library/KeyBindings/DefaultKeyBinding.dict
(you'll need to mkdir
and touch
the file if it doesn't exist).
Add this:
{
"^/" = "noop:";
}
Then restart vscode.
Upvotes: 10
Reputation: 1695
To add to the answer from mooncoder above... If you are on High Sierra or above (Mojave, Catalina), you'll need to use this as the contents of your DefaultKeyBinding.dict
file, as posted in this issue on gitHub.com.
{
"@^\UF701" = "noop:";
"@^\UF702" = "noop:";
"@^\UF703" = "noop:";
}
Upvotes: 3
Reputation: 483
The best way that I've found is to disable all bell sounds in the operating system's control panel. I'm not sure where that's found for Mac, though.
Upvotes: 2