NICE on Success
🎵 Install and it works instantly! The extension automatically plays celebratory sounds when your tasks and commands succeed, and different sounds when they fail.
Features
- ✅ Auto-detect Task Success/Failure - Plays sounds immediately when tasks complete
- 🔊 Random Sound Selection - Multiple sounds in success and failure folders, randomly selected each time
- 🎯 Command Filtering - Add or remove specific tasks/commands to control which ones trigger sounds
- 🎨 Custom Sounds - Replace default sounds with your own
.wav files
- ⏱️ Smart Duration Filter - Ignores instantaneous commands (like
clear or cd) so you aren't bombarded by noise
- 🖥️ Terminal Support - Optional terminal command detection (requires VS Code 1.89.0+)
Usage
Just run your tasks normally! When a task completes:
- ✨ Success (exit code 0) → Random success sound plays
- ❌ Failure (non-zero exit code) → Random failure sound plays
Managing Sound Triggers
By default, all tasks trigger sounds. To filter specific tasks/commands:
- Press
Ctrl+Shift+P and search for:
- "NICE: Add Command to Filter" - Add a specific task/command
- "NICE: Remove Command from Filter" - Remove a task/command
- "NICE: Show Enabled Commands" - View current filter list
Custom Sounds
To use your own .wav files, edit your VS Code settings:
{
"niceOnSuccess.successSoundPath": "C:\\absolute\\path\\to\\success.wav",
"niceOnSuccess.failureSoundPath": "C:\\absolute\\path\\to\\failure.wav"
}
Terminal Commands (Optional)
To enable sounds for typed terminal commands:
- Open VS Code Settings
- Search for
niceOnSuccess.enableTerminalListener
- Enable it (requires VS Code 1.89.0+)
Minimum Duration Threshold
To prevent you from being bombarded with sounds when running simple, instantaneous commands (like clear, cd, or looking at a file), the extension requires a task/command to run for at least 100 milliseconds before playing a sound.
You can customize this threshold:
- Open VS Code Settings
- Search for
niceOnSuccess.minDurationMs
- Change it to any millisecond value (e.g.,
500 for half a second, 0 to always play sounds)
Enjoy your sounds! 🎉