Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Sound on File EventNew to Visual Studio Code? Get it now.
Sound on File Event

Sound on File Event

Anuj Labs

|
191 installs
| (0) | Free
Play a sound when files or folders are created or deleted in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sound On File Events

Sound On File Events is a lightweight VS Code extension that plays a sound whenever files or folders are created or deleted from VS Code.

By default, it randomly picks:

  • a sound from create/ when creating files/folders
  • a sound from delete/ when deleting files/folders

Per-event custom sound settings can override this behavior:

  • fileSound.customCreateSoundPath for create events
  • fileSound.customDeleteSoundPath for delete events

If no per-event custom sound is configured, it uses the event folder. If that folder has no valid audio files, it falls back to the bundled default sound.

Features

  • Plays a sound on file/folder creation
  • Plays a sound on file/folder deletion
  • Supports custom audio files
  • Configurable cooldown between sound plays
  • Cross-platform playback fallback support

Install

From VS Code Marketplace

  1. Open Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  2. Search for Sound On File Events
  3. Click Install

From VSIX

code --install-extension AnujLabs.sound-on-file-event

Commands

Open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and run:

  • File Sound: Select Create Custom Sound — Choose a custom audio file for create events
  • File Sound: Clear Create Custom Sound — Clear custom audio for create events
  • File Sound: Select Delete Custom Sound — Choose a custom audio file for delete events
  • File Sound: Clear Delete Custom Sound — Clear custom audio for delete events
  • File Sound: Play Test Sound — Test the currently configured sound

Configuration

Settings path: Settings → Extensions → File Sound

  • fileSound.enabled (default: true)
    Enable or disable event sounds.

  • fileSound.customCreateSoundPath (default: empty)
    Custom audio file for create events.

  • fileSound.customDeleteSoundPath (default: empty)
    Custom audio file for delete events.

  • fileSound.cooldownMs (default: 1200)
    Minimum delay (in milliseconds) between sound plays.

Playback Backends

  • macOS — Uses afplay
  • Linux — Tries paplay, aplay, ffplay, mpg123, mpg321, then play
  • Windows — Uses PowerShell media playback with fallbacks

Notes

  • Events are triggered by file operations performed through VS Code APIs (for example: Explorer create/delete actions).
  • Supported audio extensions in event folders: .mp3, .wav, .ogg, .m4a, .aac, .flac.
  • Very rapid operations may be rate-limited by the cooldown setting.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft