Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Twitch CoderNew to Visual Studio Code? Get it now.
Twitch Coder

Twitch Coder

Simek

|
8 installs
| (1) | Free
A VS Code extension that lets your Twitch viewers help spot bugs, typos, and more by sending chat commands that highlight lines of code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Twitch Coder

Twitch Coder VS Code Extension

Latest release Workflow status Install from VS Code Marketplace Install from Open VSX

A VS Code extension that lets your Twitch viewers help spot bugs, typos, and more by sending chat commands that highlight lines of code.

Extension screenshot

🔧 Requirements

To use this extension, you will need:

  • An installed version of VS Code
  • A Twitch account for yourself or a separate one to be used as a chat bot (sign up here)

🚀 Getting Started

  1. Install the extension from the VS Code Marketplace or Open VSX.

  2. Open your VS Code Settings and type in "twitch" into the search bar.

    You can press CTRL/CMD + ,, or navigate via menus File -> Perferences -> Settings.

  3. Find the Twitch Coder: Channels setting and enter the name of the channel(s) to which you'd like the extension to connect.

    If you'd like to connect to more than one channel separate them by commas ,, for example: simek,dev_spajus.

  4. Find the Twitch Coder: Nickname setting. If you are using your own account for the chat bot, enter your account username here. If you created a separate account, use that username. Save your changes.

  5. Make sure you're logged in to the Twitch account you wish to authorize the highlighter bot to access in your default browser.

  6. In the status bar, click the "Twitch" button. After clicking it, you'll see a notification that the extension wants to open a URL.

  7. Choose the "Open" option which should open a new tab of your default browser.

  8. Review the permissions requested by the bot/extension and choose "Authorize". You will be notified that you can close the browser tab.

  9. Return to VS Code. You should now see "Disconnected" in the Status Bar. Click it to connect the bot to chat and start listening for highlight commands.

💬 Twitch Commands

To highlight a line, use:

!highlight <LineNumber>
# OR
!line <LineNumber>

To unhighlight a line, use:

!line !<LineNumber>

To highlight multiple lines, use the same syntax as above but include a range of lines to highlight:

!line <StartLineNumber>-<EndLineNumber>

Additionally, you can also include comments:

!line <LineNumber> This is an example comment

Or highlight the line in one of opened tabs, which is not in active (it also works with comment and line ranges):

!line <LineNumber> <FileName> This is an example comment

⚙️ Extension Settings

  • twitchCoder.channels: A comma separated list of channel name(s) to connect to on Twitch. Example: simek or for multiple channels: simek, dev_spajus.

  • twitchCoder.nickname: The username the chat bot should use when joining a Twitch channel. If empty, your Twitch user will be used.

    Note: this is required if you'd like to have the bot send join/leave messages in your chat. It also needs to match the Twitch username with which you generated the OAuth token.

  • twitchCoder.highlightColor: Background color of the decoration. Use rgba() and define transparent background colors to play well with other decorations. Example: rgba(169,112,255,0.8).

  • twitchCoder.highlightFontColor: Font color of the decoration. Use rgba() and define transparent background colors to play well with other decorations. Example: white.

  • twitchCoder.highlightBorder: CSS border styling property that will be applied to text enclosed by a decoration. Example: 1px solid #d7bdff.

  • twitchCoder.autoConnect: Whether or not the chat bot should try connecting automatically when VS Code starts.

  • twitchCoder.announceBot: Whether or not the chat bot should announce its joining or leaving the chat room.

  • twitchCoder.joinMessage: The message the chat bot will say when joining a chat room.

  • twitchCoder.leaveMessage: The message the chat bot will say when leaving a chat room.

  • twitchCoder.usageTip: A tip shared by the bot when a user chats: !highlight or !line.

  • twitchCoder.requiredBadges: A list of badges required to use the highlighter command. The use must have at least one of these badges to use the command. Leave blank for no requirement. Example: moderator, subscriber, vip.

  • twitchCoder.switchActiveTab: Whether or not allow the incoming highlight to switch the currently active editor tab.

  • twitchCoder.showHighlightsInActivityBar: Show the Highlights icon in the activity bar to display the tree view.

  • twitchCoder.unhighlightOnDisconnect: Whether or not unhighlight all lines when disconnected from the chat service.

👥 Attribution

Part of the code in this extension has been adapted from:

  • Twitch Highligher extension built by @clarkio
  • Twitchlint extension built by @irth

📝 Release Notes

See CHANGELOG.md

🧑‍💻 Contributing

Any contributions are welcome!

Prerequisites

  • Bun 1.3+
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft