Last updated: Apr 6, 2024
Reading time·3 min
To turn off (or on) sounds in Visual Studio Code:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.off
or on
depending
on whether you want to turn the sounds off or on.There are 3 possible settings for each audio cue:
auto
- enables the audio cue (sound) when a screen reader is attached.off
- disables the audio cue.on
- enables the audio cue.If you want to disable the audio cues even if a screen reader is attached, set
their values to off
.
In other words, all audio cues are set to auto
by default.
Audio cues are meant to be used mainly by visually impaired developers.
Their main purpose is accessibility.
There are audio cues for when:
If you set an audio cue to on
, the sound is played even if there is no screen
reader attached.
Conversely, if you set an audio cue to off
, no sound is played even if there
is a screen reader attached.
You can view and listen to all audio cues by using the Command Palette:
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.You can use the arrow keys to view and listen to all available audio cues.
If VS Code still plays sounds, you might have enabled the Accessibility Support feature.
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.off
.The setting controls whether the UI should run in a mode that is optimized for screen readers.
The three possible values are:
auto
- use platform APIs to detect when a screen reader is attached.on
- optimize for usage with a screen reader.off
- assume a screen reader is not attached.You can also disable the setting in a .vscode/settings.json
file.
In the root directory of your project, create a .vscode folder.
Create a settings.json
file in the .vscode
folder.
Add the following code to your settings.json
file.
{ "editor.accessibilitySupport": "off" }
When a setting is set in .vscode/settings.json
, it overrides any global
config.
You can also disable specific audio cues in your .vscode/settings.json
file.
{ "editor.accessibilitySupport": "off", "audioCues.diffLineDeleted": "off" }
Once you type "audioCues.", you should be able to get autocomplete and find the name of the audio cue you want to disable or enable.
If you want to enable an audio cue, set its value to on
.
{ "editor.accessibilitySupport": "off", "audioCues.diffLineDeleted": "off", "audioCues.lineHasBreakpoint": "on" }
The settings in your local .vscode/settings.json
file will override any global
settings. They are scoped to your workspace (project).
You can learn more about the related topics by checking out the following tutorials: