Skip to content

nicollasricas/vscode-deck

Repository files navigation

Stream Deck for Visual Studio Code

Features

  • Execute any Visual Studio Code command or menu.
  • Create and execute terminal commands.
  • Insert snippets.

Getting Started

  1. Download Visual Studio Code plugin on Stream Deck Store or here.
  2. Download Stream Deck for Visual Studio Code on Visual Studio Code marketplace or here.

After installing the plugin and the extension you should see this in VSCode status bar:

Connected to Stream Deck

If for some reason the focused instance, were not active click on the status bar or alternate between windows to force activation.

Only the active session will receive the commands.

If you are connected remotely through SSH, you should add a forward into your SSH config.

RemoteForward 48969 127.0.0.1:48969

Thanks to rettgerst for pointing this out here.

Getting Commands ID

In Visual Studio Code open File->Preferences->Keyboard Shortcuts, find the command you want, right-click it and Copy Command Id.

Settings (Optional)

You can change the IP and port to the message server in the settings.ini file.

[general]
host=127.0.0.1
port=48969

Windows

%appdata%\Elgato\StreamDeck\Plugins\com.nicollasr.streamdeckvsc.sdPlugin\settings.ini

Mac

~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.nicollasr.streamdeckvsc.mac.sdPlugin/settings.ini

If you changed the server port, don't forget to change it in Visual Studio Code settings or you won't be able to connect and use the available features.

I recommend using 127.0.0.1 as your IP address instead of localhost.

Windows WSL2

  1. It is important that %appdata%\Elgato\StreamDeck\Plugins\com.nicollasr.streamdeckvsc.sdPlugin\settings.ini is listening on 0.0.0.0:
[general]
host=0.0.0.0
port=48969
  1. Next, configure ~/.vscode-server/data/Machine/settings.json to the IP address of the Win10 host, as identified by ipconfig /all from a CMD Prompt - e.g.:
{
    "streamdeck.serverHost": "192.168.0.25"
}