Error Sound FX

Plays a funny sound every time you hit an error in your code, terminal, or debugger.
Features
- Plays separate sounds for Code/Editor, Terminal, and Debugger errors, each with its own custom sound list.
- Catches unhandled debugger exceptions, stderr output, and non-zero debug exit codes.
- Tracks editor diagnostics, highlights active error lines with a bordered box, and triggers audio when errors appear or remain after an edit.
- Includes an on/off cooldown toggle and configurable delay so rapid errors do not spam overlapping audio.
- Provides separate commands to pick custom
.wav and .mp3 files for Code, Terminal, and Debugger, plus a status bar shortcut (Sound) to mute or unmute.
How To Use?
Easy, just type whatever you like until you get an error and you will hear the sound of a blessing. You can customize separate sounds for Code, Terminal, and Debugger errors anytime:
Adding Your Own Sound File
- Press
Ctrl + Shift + P and run Error Sound: Pick Custom Code Sound, Error Sound: Pick Custom Terminal Sound, or Error Sound: Pick Custom Debugger Sound.
- Choose one or more
.wav or .mp3 files from your computer to activate them immediately.
- Need quiet time? Click
Sound in the bottom-right Status Bar or run Error Sound: Toggle On/Off to mute or unmute sounds anytime.
Commands
Open the Command Palette (Ctrl + Shift + P) and run:
Error Sound: Pick Custom Code Sound: Add custom .wav or .mp3 files for Code errors.
Error Sound: Pick Custom Terminal Sound: Add custom .wav or .mp3 files for Terminal errors.
Error Sound: Pick Custom Debugger Sound: Add custom .wav or .mp3 files for Debugger errors.
Error Sound: Toggle On/Off: Enable or mute all error sounds.
Error Sound: Toggle Cooldown On/Off: Turn anti spam cooldown on or off.
Error Sound: Open Settings: Open Error Sound configuration in VS Code Settings.
Extension Settings
This extension contributes the following settings:
errorSound.enabled: Enable or disable Error Sound effects (default: true)
errorSound.highlightErrors: Draw a bordered highlight box around error ranges in the editor (default: true)
errorSound.volume: Sound playback volume from 0 to 100 (default: 80)
errorSound.cooldownEnabled: Turn cooldown on or off to prevent rapid sound spam (default: true)
errorSound.cooldownMs: Cooldown between sounds in milliseconds when cooldownEnabled is on (default: 2500)
errorSound.codeSound: Active sound played on Code/Editor errors, set to "default" or a file path (default: "default")
errorSound.customCodeSounds: Array of absolute file paths to custom .wav or .mp3 files for Code errors (default: [])
errorSound.terminalSound: Active sound played on Terminal errors, set to "default" or a file path (default: "default")
errorSound.customTerminalSounds: Array of absolute file paths to custom .wav or .mp3 files for Terminal errors (default: [])
errorSound.debugSound: Active sound played on Debugger errors, set to "default" or a file path (default: "default")
errorSound.customDebugSounds: Array of absolute file paths to custom .wav or .mp3 files for Debugger errors (default: [])
errorSound.triggers.terminal: Play sound on terminal command error (default: true)
errorSound.triggers.debug: Play sound on debugger exception or non-zero exit (default: true)
errorSound.triggers.diagnostics: Play sound when editor errors appear or remain on edit (default: true)
errorSound.terminalKeywords: Terminal output keywords that trigger an error sound (default: ["error", "Traceback", "Exception", "FAILED", "panic", "FATAL", "SyntaxError"])
Example settings:
"errorSound.enabled": true,
"errorSound.highlightErrors": true,
"errorSound.volume": 80,
"errorSound.cooldownEnabled": true,
"errorSound.cooldownMs": 2500,
"errorSound.codeSound": "C:\\Sounds\\vine-boom.mp3",
"errorSound.customCodeSounds": [
"C:\\Sounds\\vine-boom.mp3"
],
"errorSound.terminalSound": "C:\\Sounds\\bruh.wav",
"errorSound.customTerminalSounds": [
"C:\\Sounds\\bruh.wav"
],
"errorSound.debugSound": "C:\\Sounds\\bonk.wav",
"errorSound.customDebugSounds": [
"C:\\Sounds\\bonk.wav"
]
enabled → turn Error Sound on/off
highlightErrors → show a bordered highlight box on error code
volume → sound volume from 0 to 100
cooldownEnabled → turn anti-spam cooldown on/off
cooldownMs → delay between sounds in milliseconds
codeSound → "default" or path to the active Code error sound
customCodeSounds → list of custom .wav or .mp3 files for Code errors
terminalSound → "default" or path to the active Terminal error sound
customTerminalSounds → list of custom .wav or .mp3 files for Terminal errors
debugSound → "default" or path to the active Debugger error sound
customDebugSounds → list of custom .wav or .mp3 files for Debugger errors
Contributing
Pull requests welcome!, Add your idea, improve detection logic, add add your new features.
Repository:
https://github.com/Ryuz-V/Error-Sound
License
MIT