Terminal Error Sound
A VS Code extension that plays an MP3 sound whenever an error occurs in the terminal.
Features
- Plays a sound when a terminal command exits with a non-zero exit code
- Plays a sound when terminal output contains error keywords (e.g.,
error, failed, exception)
- 3-second cooldown to prevent sound spam
- Fully configurable via VS Code settings
Requirements
- VS Code 1.93+ (uses the Shell Integration API)
- Shell integration must be active in your terminal (enabled by default in bash, zsh, fish, and PowerShell)
Settings
| Setting |
Default |
Description |
terminalErrorSound.enabled |
true |
Enable/disable the sound |
terminalErrorSound.soundFilePath |
"" |
Path to a custom MP3 file. Leave empty to use the bundled sound |
terminalErrorSound.errorPatterns |
["error","Error","ERROR",...] |
Keywords to match in terminal output |
Commands
- Terminal Error Sound: Test Sound — Plays the configured sound immediately (accessible via Command Palette)
Usage
- Press
F5 to launch the extension in a new Extension Development Host window
- Open a terminal and run a command that fails (e.g.,
node nonexistent.js)
- The sound will play automatically
To use your own sound file, set terminalErrorSound.soundFilePath in your VS Code settings to the absolute path of any MP3 file.
| |