Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DevDJ for SpotifyNew to Visual Studio Code? Get it now.
DevDJ for Spotify

DevDJ for Spotify

Darshan Moradiya

|
3 installs
| (0) | Free
Spotify player for VS Code: play, search, browse your library and queue, and listen together with friends on the same Wi-Fi.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DevDJ for Spotify

Be the DJ while you code: your Spotify player inside VS Code. Play, search, browse your library and queue, and listen together with friends, all without leaving your editor.

DevDJ is an independent extension and is not affiliated with or endorsed by Spotify. Spotify Premium is required to control playback.

Features

  • Player: big album art with a matching background color, a draggable progress bar, shuffle, repeat, like, volume, and the current device with one-click Move here. See where the music is playing from (click it to open that playlist, album or artist), the album name and release year, and an E badge on explicit songs. Your name and picture show at the top, with a warning if the account isn't Premium.

  • Podcasts and audiobooks: back 15 s and forward 30 s buttons while an episode plays, and episodes pick up where you left off.

  • Like anything: a heart on every song, in the queue, playlists, albums, search and history.

  • Queue: see what's playing now and what's coming next. Add a whole album or playlist to the queue in one click.

  • Library: Liked Songs, your playlists, saved albums, podcasts, audiobooks and the artists you follow, with cover art. Open an album or an artist page (albums and singles, plus a Follow button) and play from any song.

  • Your playlists: create, rename, change the description, upload a cover (JPEG up to 256 KB), delete, add songs from anywhere, remove songs, and reorder them by dragging (or Alt+↑/↓). Follow or unfollow other people's playlists.

  • Recently played and your top: the songs you played last, and your top songs and artists for the last 4 weeks, 6 months or all time.

  • Search: songs, artists, albums, playlists, podcasts and audiobooks with artwork, in tabs, with Show more. Recent searches are remembered.

  • Open in Spotify: open any song, album, artist, playlist or podcast in the Spotify app (or the web player if the app isn't installed).

  • Sidebar tree and commands: the Playlists view lists the same sections with right-click actions, and everything works from the Command Palette too: DevDJ: Add to Playlist..., New Playlist..., Recently Played, Open in Spotify, Skip Back 15 Seconds, Skip Forward 30 Seconds and more.

  • Listen Together: play the same song at the same moment with friends on the same Wi-Fi. The host decides what guests can do (play/pause, skip, seek, add to queue, change song), and can change it live.

  • Status bar: previous, play/pause, next and the current song, always visible.

  • Plays on this computer: pressing play starts the Spotify app here (minimized) instead of another device.

  • Keyboard friendly:

    Shortcut Action
    Ctrl+Alt+Space Play / pause
    Ctrl+Alt+→ / Ctrl+Alt+← Next / previous song
    Media keys (turn on spotify.mediaKeys) Play/pause, next, previous
    Space, /, Shift+←/→ Inside the panel: play/pause, search, previous/next (Player tab)

    Every action can get your own shortcut: like, search, shuffle, repeat, volume up/down, show queue, devices and more. Run DevDJ: Customize Keyboard Shortcuts (also in the panel's … menu) to change or add any of them.

    Note: Ctrl+Alt+←/→ replace VS Code's "Move editor to previous/next group" shortcut on Windows and Linux, and "Move cursor by word part" on macOS. Change them with DevDJ: Customize Keyboard Shortcuts if you use those.

Getting started

  1. Install DevDJ and click the headphones icon in the Activity Bar.
  2. Follow the 2-minute setup, which you only do once:
    • Click Open Spotify Dashboard and create a free app. DevDJ shows every value to paste, with copy buttons.
    • Paste the app's Client ID back into DevDJ.
  3. Click Sign in. You're done, and sign-in is one click from then on.

Updating from an older version

DevDJ 1.1.0 asks Spotify for a few more permissions (editing playlists, history, top songs, followed artists and podcast progress). If you signed in before, the panel shows Sign in again the first time you use one of the new features, or run DevDJ: Allow New Features (sign in again). You don't need to sign out.

Why do I create my own Spotify app?

Spotify only lets apps sign people in through an app a developer registers, and it caps every individual developer's app at a handful of users. With your own free app there's no limit, no shared keys, and nothing secret to manage. You never need the Client Secret. Sign-in uses OAuth PKCE, and your login is stored in VS Code's encrypted Secret Storage.

Listen Together

Works on your local network: everyone must be on the same Wi-Fi or office network. Nothing goes through any server except each person's own Spotify.

  • Host: open the Together tab and click Start a session. The first time, Windows may ask whether VS Code can use the network. Click Allow.
  • Friends: click Join a session. Your session appears automatically. They can also open the invite link you share (from DevDJ: Listen Together: Copy Invite Link). DevDJ asks before joining from a link.
  • Permissions: use the switches to choose what guests can do. The host's VS Code enforces them.

Each guest's VS Code syncs its clock with the host, starts the same song at the host's position, and corrects any lasting drift over 0.3 s (judged from several readings, so Spotify's own jitter doesn't cause skips). Every listener needs Spotify Premium and their own setup.

What Spotify doesn't allow

Spotify's Web API sets some limits that no extension can work around:

  • No "Play next": songs can only be added to the end of the queue.
  • No clearing or reordering the queue, and no removing songs from it.
  • Playlists you didn't make (such as Spotify's own mixes, or a friend's playlist you follow) can be played, but Spotify doesn't let apps list their songs.
  • Some pages are limited for apps like DevDJ (for example an artist's top songs, new releases and recommendations). DevDJ shows a short note where something isn't available.
  • Playlist covers must be JPEG images of 256 KB or less.

Settings

Setting Default Description
spotify.clientId "" Client ID of your own Spotify app (set by the setup guide)
spotify.redirectPort 8888 Local sign-in callback port. It must match your app's Redirect URI.
spotify.useDesktopApp true Play through the Spotify app on this computer when nothing is playing here
spotify.pollIntervalSeconds 3 How often playback refreshes while VS Code is focused
spotify.listenTogether.port 47321 Port used when hosting Listen Together (another free port is used if it's busy)
spotify.listenTogether.audioOffsetMs 0 Shift your Listen Together playback by this many milliseconds, for example 200 for Bluetooth speakers
spotify.mediaKeys false Let the keyboard's media keys control DevDJ while VS Code is focused. Leave off if the Spotify app already reacts to them.
spotify.statusBar.showTrack true Show the song name in the status bar
spotify.statusBar.maxLength 40 Maximum length of the status bar song label

Privacy

DevDJ talks only to Spotify's official Web API, and to other DevDJ users on your local network during Listen Together. It collects no telemetry. Your Spotify tokens never leave your computer.

Troubleshooting

  • "client_id: Invalid": the Client ID is wrong, or that Spotify app was deleted. Run DevDJ: Connect Spotify (setup) and paste the right one.
  • "INVALID_CLIENT: Invalid redirect URI": your Spotify app's Redirect URI must be exactly http://127.0.0.1:8888/callback (with your spotify.redirectPort instead of 8888 if you changed it).
  • No sound: DevDJ is a remote control. Check the device shown under the player and click Move here.
  • Friends can't find your session: make sure you're on the same network, and that Windows Firewall allows VS Code on Private networks.
  • Logs: View → Output → DevDJ.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft