Synchronize your active Visual Studio Code Word Wrap state in real time with Bitfocus Companion (e.g. for dynamic button feedback on an Elgato Stream Deck).
Features
Real-time Sync: Instantly sends an HTTP POST request to the Bitfocus Companion REST API whenever Word Wrap is toggled.
Initial Status Push: Transmits the current Word Wrap state to Companion as soon as VS Code launches.
Native Integration: Executes standard, zero-delay visual word wrapping in the active editor.
Single Source of Truth: VS Code remains the sole source of truth — Companion seamlessly mirrors the state.
Fully Configurable: Easily configure host IP, HTTP port, and custom variable name in VS Code settings.
Commands & Keybindings
Element
Value
Description
Command
metawops.toggleWordWrap
View: Toggle Word Wrap (Companion Synced)
Keybinding
⌥ + Z (macOS) / Alt + Z (Windows/Linux)
Toggles word wrapping in the active editor and synchronizes the state with Companion.
Note: The extension binds ⌥ + Z (Alt + Z) to seamlessly replace the default shortcut while adding Companion state sync.
Extension Settings
You can customize the settings via the VS Code Settings UI (⌘ + , or Ctrl + , → Search for Companion WordWrap) or directly in your settings.json:
Setting
Type
Default
Description
companionWordWrap.host
string
""
IP address or hostname of the Bitfocus Companion server.
companionWordWrap.port
number
8888
HTTP port of Bitfocus Companion (e.g. 8888 or 8000).
companionWordWrap.variableName
string
"vscode_wordwrap"
Name of the custom variable created in Bitfocus Companion.
Bitfocus Companion Setup
1. Create a Custom Variable in Companion
In the Bitfocus Companion Web UI, navigate to Variables → Custom Variables.
Click Add Custom Variable:
Name:vscode_wordwrap
Type:{} (JSON)
2. Configure Stream Deck Button Feedback
Select the desired button on your Stream Deck grid.