Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off all sounds from Visual Studio Code?

I'd also like to know how to turn off these sounds. I'm running VSCode on Windows 10. I did a search in the settings:

VS Code Settings Search

and nothing showed up.

like image 746
Alex. A Avatar asked Jan 13 '19 21:01

Alex. A


4 Answers

There is a commit that should be in v1.72 for two more audio cues:

terminal bell
task ended       "Plays a sound when a task ends."
  • from https://github.com/microsoft/vscode/commit/001f7d5b4c20220ef7294f18616ad52df1039048

It looks like the previous audio cue setting: Audio Cues: Enabled is being replaced by a series of more specific settings. (At least, that setting has disappeared from my Insiders Build v1.65. A little odd that the general one-step enable/disable setting has been removed?)

But in v1.66 there is a volume control for all audio cuew that you could set to 0 to turn off or increase if the default of 50 is too low in volume:

Audio Cues Improvements

The new setting audioCues.volume (0-100, default is 50) can be used to control the volume of audio cues. We also updated the audio cue for folded regions.

You can individually disable these:

Audio Cues: Line Has Breakpoint  
Audio Cues: Line Has Error  
Audio Cues: Line Has Folded Areas  
Audio Cues: Line Has Inline Suggestion  
Audio Cues: Line Has Warning  
Audio Cues: No Inlay Hints  
Audio Cues: On Debug Break  

audio cues settings

The default auto means the sound is enabled if there is screen reader attached.


Prior to v1.65

Audio Cues: Enabled

Options:

Auto: Enable audio cues when a screen reader is attached
On: Enable audio cues
Off: Disable audio cues

See v1.64 Release Notes: Audio Cues:

Audio cues indicate if the current line has certain markers, such as errors, breakpoints, or folded text regions.

They are played when the primary cursor changes its line or the first time a marker is added to the current line. Audio cues are enabled automatically when a screen reader is attached, but can also be turned on manually by setting audioCues.enabled to on.

More audio cues are to come and we will iterate on the sound design.


And in the Insiders Build v1.65 there are more applicable settings to separately enable certain kinds of audio cue events:


audioCues.onDebugBreak: Plays a sound when the debugger stopped on a breakpoint.  

audioCues.lineHasBreakpoint:  "Plays a sound when the active line has a breakpoint."  

audioCues.lineHasInlineSuggestion: "Plays a sound when the active line has an inline suggestion."  


audioCues.lineHasError: "Plays a sound when the active line has an error."  

audioCues.lineHasFoldedArea: "Plays a sound when the active line has a folded area that can be unfolded."  

audioCues.lineHasWarning: "Plays a sound when the active line has a warning."  (off by default)

How to hear the different sounds available and enable/disable individual audio/sound settings.

audio cue help

like image 118
Mark Avatar answered Nov 10 '22 03:11

Mark


This is because you possibly have accessibility Support enabled, so you just have to disable it.

...
"editor.accessibilitySupport": "off",
...
like image 28
wootsbot Avatar answered Nov 10 '22 04:11

wootsbot


Not an elegant solution, but works:

  • Look towards the notification area which is typically located in the bottom-right corner of a Windows Desktop environment.
  • Right-click the icon that looks like a Speaker, and select 'Open Volume Mixer' from the list of choices.

OR

  • Press the 'Windows Key' or open the Start menu, and then type in 'audio devices' and select 'Manage audio devices' from the results, and hit enter.

THEN

  • Scroll to the Application representing MS Visual Studio Code and hit the Mute button - voila!
like image 8
Dbercules Avatar answered Nov 10 '22 05:11

Dbercules


MacOS / MacBook => VS Code Preferences => Accessibility Support => Off

** I was using VIM extension and it was triggering bell sound each time I pass over a line with some error shown by linter.

MacBook VS Code

like image 4
Bhalendra Singh Katiyar Avatar answered Nov 10 '22 05:11

Bhalendra Singh Katiyar