Skip to content

TerminalKyle/DiscordRPCExtension

Repository files navigation

Discord RPC for VS Code

A Visual Studio Code extension that displays your coding activity on Discord with rich presence.

Features

  • Real-time status updates: shows your current file and workspace
  • Session tracking: displays how long you've been coding
  • Activity detection: typing, debugging, testing, and more
  • Customizable: configure what information to display
  • Rich presence: icons, buttons, and detailed status
  • Auto-reconnect: handles connection issues automatically

Installation

  1. Install the extension from the VS Code Marketplace
  2. Make sure Discord is running
  3. Enter your Discord Application Client ID in settings
  4. Enable the extension

Configuration

In VS Code settings, search for “Discord RPC”:

Setting Description Default
Enable/Disable Turn the extension on or off true
Show File Name Display current file in Discord status true
Show Workspace Display workspace name in Discord status true
Show Session Time Show coding session duration true
Show Activity Show current activity (typing, debugging) true
Client ID Your Discord Application Client ID ""
Update Interval How often to update (minimum 15 seconds) 15000

Discord Application Setup

  1. Go to the Discord Developer Portal
  2. Create a new application
  3. Name it (e.g., “VS Code”)
  4. Copy the Application ID
  5. Paste it into the extension settings as the Client ID

Commands

  • Discord RPC: Enable – Enable the extension
  • Discord RPC: Disable – Disable the extension
  • Discord RPC: Toggle – Toggle it on or off

Status Bar

The extension shows connection status in the VS Code status bar:

  • Connected: RPC is active
  • Disconnected: RPC is disabled or not connected

Troubleshooting

Extension not connecting

  • Make sure Discord is running
  • Verify the Client ID
  • Restart VS Code and Discord

Status not updating

  • Check the update interval setting (minimum 15 seconds)
  • Make sure the extension is enabled
  • Try disabling and re-enabling

Connection issues

  • The extension retries with different methods
  • Ensure Discord is up to date

Development

  1. Clone the repository
  2. Run npm install
  3. Open in VS Code
  4. Press F5 to start the extension in a new window
  5. Make and test changes

About

DiscordRPCExtension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published