TerminalBell
Plays a signal - sound (audio cue) and/or announcement (alert) - when the terminal bell is ringing.
{
"accessibility.signals.terminalBell": {
"sound": "auto",
"announcement": "auto"
} // default
}
Type
object
Default
{
"sound": "auto",
"announcement": "auto"
}
Object Properties
Key | Type | Default | Range | Description |
---|---|---|---|---|
"sound" | string | "auto" | "auto" , "off" , "on" | Plays a sound when the terminal bell is ringing. |
"announcement" | string | "auto" | "auto" , "off" | Announces when the terminal bell is ringing. |
Description
Controls if sound and announcement signals are played when the terminal bell is rung.
When "sound"
is set to "auto"
, the sound signal will play whenever the terminal bell is rung and a screen reader is detected or "editor.accessibilitySettings": "on"
. When set to "off"
, the sound signal will never play even when a screen reader is detected or "editor.accessibiltySupport": "on"
. When set to "on"
, the sound signal will always play even when a screen reader is not detected or "editor.accessibilitySupport": "off"
.
When "announcement"
is set to "auto"
, the screen reader will make the announcement whenever the terminal bell is rung and a screen reader is detected. When set to "off"
, the screen reader will never make the announcement even when a screen reader is detected.
NOTE: Even if you have the audio/visual bell disabled in your shell or terminal emulator, VSCode will still play the signal, but it will play it from within VSCode and not reach out to the shell or terminal to play it.
NOTE: Add
if [[ "$TERM_PROGRAM" == "vscode" ]]; then
. "$(code --locate-shell-integration-path zsh)"
fi
to your zshrc to get this to work with zsh.