Overview Version History Q & A Rating & Review
VS Music Extension - Spotify Integration
A Visual Studio Code extension that integrates Spotify with your coding environment. View track information, browse playlists, and control your music without leaving VS Code!
Features
🎵 Current Track Display - See what's playing in the status bar
📋 Playlist Management - Browse your personal playlists
🔍 Search Playlists - Find public playlists by keyword
🌐 Web Player Integration - Quick access to Spotify Web Player
⌨ Keyboard Shortcuts - Fast access to music controls
📊 Status Bar Info - Real-time track information
Installation
Option 1: From VS Code Marketplace (Recommended)
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "VS Music Extension"
Click Install
Option 2: Manual Installation
1.Download the latest .vsix file from Releases
Open VS Code
Press Ctrl+Shift+P and type "Extensions: Install from VSIX"
Select the downloaded file
Setup Instructions
Step 1: Create a Spotify App
Go to Spotify Developer Dashboard
Log in with your Spotify account
Click "Create App"
Fill in:
Save your app and note down:
Open VS Code
Press Ctrl+Shift+P and search for "Spotify: Setup Credentials"
Enter your Client ID and Client Secret from Step 1
Press Ctrl+Shift+P and search for "Spotify: Authenticate"
Complete the authentication in your browser
Step 3: Set Default Playlist (Optional)
Press Ctrl+Shift+P and search for "Spotify: Set Playlist"
Enter any of these formats:
Usage
Quick Actions
Keyboard Shortcut : Ctrl+Shift+M (or Cmd+Shift+M on Mac)
Command Palette : Ctrl+Shift+P → "Spotify Quick Actions"
Status Bar : Click the music info in the bottom status bar
Available Commands
Spotify: Play Music - Open your default playlist
Spotify: Show Current Track - Display currently playing song
Spotify: Browse My Playlists - View your personal playlists
Spotify: Search Public Playlists - Find playlists by keyword
Spotify: Open Web Player - Launch Spotify in browser
Spotify: Authenticate - Connect your Spotify account
Spotify: Setup Credentials - Configure Client ID and Secret
Keyboard Shortcuts
Ctrl+Shift+M - Quick Actions Menu
Ctrl+Shift+T - Show Current Track
Important Notes
For Free Spotify Users
✅ View current track information
✅ Browse and search playlists
✅ Open playlists in browser/app
❌ Cannot control playback (play/pause/skip) - requires Spotify Premium
Privacy & Security
Your Spotify credentials are stored locally in VS Code
No data is sent to external servers except Spotify's official API
Client ID and Secret are required for Spotify API access
Troubleshooting
"Page not found" when clicking playlists
Make sure you have Spotify app installed or use the web player
Check that your playlist URI/URL is valid
Authentication Issues
Verify your Client ID and Secret are correct
Make sure redirect URI is exactly: http://127.0.0.1:8000/callback
Try re-authenticating: Ctrl+Shift+P → "Spotify: Authenticate"
Status Bar Not Showing
Enable it: Ctrl+Shift+P → "Spotify: Toggle Status Bar"
Make sure you're authenticated with Spotify
Configuration Options
Access via VS Code Settings (Ctrl+,) and search for "Spotify":
spotifyMusic.autoPlay - Auto-prompt for music on startup
spotifyMusic.showStatusBar - Display track info in status bar
spotifyMusic.playlistUri - Default playlist for quick play
Development
Building from Source
bash
git clone https://github.com/HelloMuzamil/DevTunes.git
cd spotify-background-music-player
npm install
Dependencies
axios - HTTP requests
express - Local authentication server
cors - Cross-origin requests
open - Opening URLs in browser
Contributing
Fork the repository
Create your feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
🐛 Bug Reports : GitHub Issues
📧 Email : mianmuzamil001122@gmail.com
Acknowledgments
Spotify Web API for music data
VS Code Extension API
Open source community
Enjoy coding with your favorite music! 🎵