🎶 VS Sonata - Bring Music to Your Code!
VS Sonata is a fun and immersive VS Code extension that transforms your coding experience into a musical performance. As you type specific symbols or keywords, matching sound effects play — making programming not just productive, but also enjoyable and rhythmic. Why just write code when you can compose a sonata? 🎹
✨ Features
🔊 Real-time Sound Feedback
Hear unique sound effects when typing certain symbols (like :
, {
, ;
) or programming keywords (like def
, function
, if
, etc.).
🐍 Supports Python and JavaScript
Covers most commonly used keywords in both languages.
🎛️ Fully Customizable
- Add your own keywords and matching sound effects.
- Replace existing sounds with your own audio files.
- Define new keyword-sound mappings tailored to your own projects.
🚀 Getting Started
- Install VS Sonata from the VS Code Marketplace.
- Start coding in a Python or JavaScript file.
- Listen as your keystrokes bring your editor to life with sounds.
⚙️ Commands
Use the Command Palette (Cmd/Ctrl + Shift + P
) to access:
You can also bind these commands to custom keyboard shortcuts via VS Code’s keybindings settings.
📂 Example Keywords
Language |
Keyword |
Sound Triggered |
Python |
def |
Function sound |
JavaScript |
function |
Function sound |
Both |
if |
Logic cue |
Symbols |
{ , : , ; |
UI click or tone |
🎧 Why Use VS Sonata?
- Makes programming more engaging and fun.
- Great for focus, flow, and even teaching kids or beginners.
- Express your personality through sound while you work!
🛠️ How to Customize
Want to use your own sound effects and keywords? It's easy!
📂 Locate the Extension Folder
After installation, find the extension directory on your machine:
- macOS:
~/.vscode/extensions
- Windows:
%USERPROFILE%\.vscode\extensions
Look for a folder starting with vs-sonata-
, and go inside it.
🔧 Customize Sounds and Mappings
Inside the extension folder, you’ll see an audio
folder.
Here’s what you can do:
- Drop your own sound files into the
audio
folder. (.mp3
, .wav
, etc.)
- Edit
keyword.json
to map words (like function
, return
, console.log
) to specific audio files.
- Edit
character.json
to assign sounds to individual characters like {
, ;
, or (
.
✨ After making changes, reload VS Code or disable and re-enable VS Sonata to apply them.
📣 Coming Soon
- Support for more languages and language-specific keyword sets
- Volume controls and delay settings
🙌 Contribute
Got cool ideas or sound themes to share? Contributions are welcome!
Feel free to open issues, submit pull requests, or share your custom packs with the community.
📜 License
MIT License
Compose your next masterpiece, one keystroke at a time — with VS Sonata. 🎼