bartosz
bartosz

Reputation: 414

How to turn off bell sound in Visual Studio Code?

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

Answers (7)

barturas
barturas

Reputation: 11

Cmd (Ctrl) + Shift + P > User settings > and add or edit this:

"accessibility.signals.terminalBell": {
    "sound": "off"
},

Upvotes: 1

user21475383
user21475383

Reputation: 11

Just added "audioCues.volume": 0 in my user settings.json. It works for me \o/

Upvotes: 1

paulwalker
paulwalker

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

h3nr1ke
h3nr1ke

Reputation: 363

I did the following

  1. CTRL+SHIFT +P
  2. typeed settings, to open default visual code settings.json
  3. added "terminal.integrated.enableBell": false (in the end of the file, before the closing })
  4. closed all integrated terminals opened
  5. started a new terminal
  6. hit the backspace and no sound =)

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

mooncoder
mooncoder

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

Joe Seifi
Joe Seifi

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

Nick Ramirez
Nick Ramirez

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

Related Questions