clarkio / vscode-twitch-highlighter

This is a VS Code extension that will allow your Twitch chat to highlight a line of code via a command message. Example: `!line 8 server.js`. See master branch README.md for more details
https://clarkio.com
203 stars 14 forks source link
extension hacktoberfest hacktoberfest2022 highlighter twitch visual-studio visual-studio-code vscode vscode-extension
# Twitch Line Highlighter VS Code Extension [![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-) [![Known Vulnerabilities](https://snyk.io/test/github/clarkio/vscode-twitch-highlighter/badge.svg)](https://snyk.io/test/github/clarkio/vscode-twitch-highlighter) [![Discord](https://img.shields.io/discord/421902136457035777)](https://discord.gg/xB95beJ) [![Twitch Status](https://img.shields.io/twitch/status/clarkio)](https://twitch.tv/clarkio) [![Build and Test](https://github.com/clarkio/vscode-twitch-highlighter/actions/workflows/ci-pipeline.yml/badge.svg?branch=main)](https://github.com/clarkio/vscode-twitch-highlighter/actions/workflows/ci-pipeline.yml)
[![Twitter Follow](https://img.shields.io/twitter/follow/_clarkio?style=social)](https://twitter.com/intent/follow?screen_name=_clarkio)

A VS Code extension to allow your Twitch viewers to help in spotting bugs, typos, etc. by sending a command in chat that will highlight the line of code they want you to check.

Video

All Contributors

Clarkio

This VS Code extension was built with 💙 live on stream with the programming community. Come and hang out with us over on Twitch!

https://twitch.tv/clarkio

Requirements

In order to use this extension you will need the following things before going to the Getting Started section:

Getting Started

  1. Install the extension from the marketplace

  2. Open your VS Code settings

    • Keyboard shortcut: CTRL/CMD + ,
  3. Type in "twitch" into the search bar

  4. Find the Twitch Highlighter: Channels setting and enter the name of the channel(s) to which you'd like the extension to connect. Example: clarkio If you'd like to connect to more than one channel separate them by commas ,. Example: clarkio,parithon

  5. Save your changes and close that tab. Go back to the Settings UI tab.

  6. Find the Nickname setting. If you are using your own account for the chat bot then enter your account username as the value here. If you created a separate account use that username. Save your changes.

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

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

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

  10. Read through the permissions that are being requested for use of this bot/extension and choose "Authorize"

  11. You should then be notified that you can close the browser/tab

  12. Go back to VS Code and you should now see "Disconnected" in the status bar. Click on 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 a comment

Multi-highlight example

Extension Settings

Attribution

Some of the code in this extension has been adapted from the twitchlint extension built by @irth

Known Issues

Release Notes

See CHANGELOG.md

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Anthony Conrad (parithon)
Anthony Conrad (parithon)

💻
Matthew Kosloski
Matthew Kosloski

💻
Yoann Fleury
Yoann Fleury

💻
Technickel
Technickel

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!