Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Companion WordWrap BridgeNew to Visual Studio Code? Get it now.
Companion WordWrap Bridge

Companion WordWrap Bridge

Stefan Wolfrum

| (0) | Free
Sync VS Code Word Wrap status to Bitfocus Companion in real time for Stream Deck feedbacks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Companion WordWrap Bridge (VS Code Extension)

Visual Studio Marketplace Version License: CC0-1.0

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

  1. In the Bitfocus Companion Web UI, navigate to Variables → Custom Variables.
  2. Click Add Custom Variable:
    • Name: vscode_wordwrap
    • Type: {} (JSON)

2. Configure Stream Deck Button Feedback

  1. Select the desired button on your Stream Deck grid.
  2. Under Feedbacks, add:
    • Feedback Type: internal: Variable: Check boolean expression
    • Expression: $(custom:vscode_wordwrap).value == 'on'
    • Layered Style Override: Set your preferred text or background color for the active state (Word Wrap ON).

License

CC0

To the extent possible under law, metawops has waived all copyright and related or neighboring rights to this work under the Creative Commons CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.

See the full LICENSE file or the Creative Commons Legal Code for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft