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.
- 🎵 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
- Open Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Type "Authenticate with Spotify" and press Enter
- Click "Open Spotify Login"
- Log in to Spotify and authorize the app
- Click "Open in Visual Studio Code"
- Once redirected to the visual studio code window, Click "open uri" if prompted
- Done! 🎉
Want to use your own Spotify client ID? Follow these steps:
- 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-auth/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+,orCmd+,) - Search for "Spotify Widget"
- Set the
spotifyWidget.clientIdto your copied Client ID
- Open Command Palette (
Ctrl+Shift+PorCmd+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! 🎉
Spotify Widget: Authenticate with Spotify- Log in to your Spotify accountSpotify Widget: Show- Show the Spotify widget panelSpotify Widget: Hide- Hide the Spotify widget panel
{
"spotifyWidget.clientId": "your_client_id_here",
"spotifyWidget.refreshInterval": 1000
}- clientId: Your Spotify App Client ID (Optional if using automatic setup)
- refreshInterval: Update frequency in milliseconds (default: 1000ms)
- Active Spotify account (Free or Premium)
- Spotify app must be playing music
- Internet connection
- Your Client ID is stored securely in VS Code settings (Optional if using automatic setup)
- Client Secret is NOT needed (uses PKCE flow)
- Access tokens are stored locally and never shared
- No third-party servers involved
- Run "Authenticate with Spotify" command
- Make sure you set your Client ID in settings (Optional if using automatic setup)
- Reduce refresh interval in settings (minimum 500ms recommended)
- Default is 1000ms for balance between speed and API limits
- Tokens last 1 hour
- Just re-authenticate when needed (takes 10 seconds)
- Currently only supports Windows for playback controls
- Requires Spotify desktop app to be running
- Track information updates may have a slight delay
To work on this extension:
- Clone the repository
- Run
npm install - Press
F5to start debugging - The Extension Development Host will open with the extension loaded
Contributions are welcome! Please feel free to submit a Pull Request.
- Developed by itsnotalexy
- This project is not affiliated with Spotify AB. Any use of Spotify's API and trademarks is done in accordance with their Developer Terms of Service.