Overview Version History Q & A Rating & Review
A beautiful Spotify player widget for Visual Studio Code that displays your currently playing track with playback controls, designed to look like the Spotify mobile app.
Features
🎵 Real-time display of currently playing track
🎨 Spotify mobile app-inspired design
⏯️ Playback controls (Play/Pause, Next, Previous)
📊 Progress bar with time display
🖼️ Album artwork display
🔄 Fast auto-refresh (1 second updates)
🔐 Secure PKCE authentication
Setup Instructions
1. Create a Spotify Application (One Time Setup)
Go to Spotify Developer Dashboard
Log in with your Spotify account
Click "Create app"
Fill in the details:
App name : VS Code Spotify Widget (or any name)
App description : Personal Spotify widget
Redirect URI : https://itsnotalexy.github.io/vscode-spotify-widget/callback
Which API/SDKs are you planning to use? : Web API
Save and open your app settings
Copy your Client ID (NOT the Client Secret!)
Open VS Code Settings (Ctrl+, or Cmd+,)
Search for "Spotify Widget"
Paste your Client ID into Spotify Widget: Client Id
3. Authenticate
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
Type "Authenticate with Spotify" and press Enter
Click "Open Spotify Login"
Log in to Spotify and authorize the app
Copy the authorization code from the page
Paste it back into VS Code
Done! 🎉
Commands
Spotify Widget: Authenticate with Spotify - Log in to your Spotify account
Spotify Widget: Show - Show the Spotify widget panel
Spotify Widget: Hide - Hide the Spotify widget panel
Configuration
{
"spotifyWidget.clientId": "your_client_id_here",
"spotifyWidget.refreshInterval": 1000
}
clientId : Your Spotify App Client ID
refreshInterval : Update frequency in milliseconds (default: 1000ms)
Requirements
Active Spotify account (Free or Premium)
Spotify app must be playing music
Internet connection
Security
Your Client ID is stored securely in VS Code settings
Client Secret is NOT needed (uses PKCE flow)
Access tokens are stored locally and never shared
No third-party servers involved
Troubleshooting
"Not authenticated" message
Run "Authenticate with Spotify" command
Make sure you set your Client ID in settings
Slow updates
Reduce refresh interval in settings (minimum 500ms recommended)
Default is 1000ms for balance between speed and API limits
Token expired
Tokens last 1 hour
Just re-authenticate when needed (takes 10 seconds)
Known Limitations
Currently only supports Windows for playback controls
Requires Spotify desktop app to be running
Track information updates may have a slight delay
Development
To work on this extension:
Clone the repository
Run npm install
Press F5 to start debugging
The Extension Development Host will open with the extension loaded
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Credits