Skip to content

prsweet/cp-helper

Repository files navigation

CP-Helper

A minimal, fast competitive programming helper for Sublime Text. Inspired by CPH for VS Code.

Features

  • 🚀 Fast - Minimal code, maximum speed
  • 🔗 Competitive Companion - Parse problems directly from browser
  • Test Cases - Run and compare test cases with clean UI
  • 📝 C++ Only - Focused support for competitive programming

Installation

  1. Copy this folder to your Sublime Text Packages directory:

    • macOS: ~/Library/Application Support/Sublime Text/Packages/
    • Linux: ~/.config/sublime-text/Packages/
    • Windows: %APPDATA%\Sublime Text\Packages\
  2. Install Competitive Companion browser extension

  3. Configure the extension to use port 10043 (or change in settings)

Usage

  1. Parse Problem: Click the Competitive Companion extension on a problem page
  2. Open Panel: Press Cmd+Shift+B (Mac) or use Command Palette: "CP Helper: Open Test Panel"
  3. Run Tests: Click "Run All" or run individual tests
  4. Edit Tests: Click "Edit" to modify input/expected output

Keyboard Shortcuts

Shortcut Action
Cmd+Shift+B Open test panel

Settings

Edit cp-helper.sublime-settings:

{
    "companion_port": 10043,
    "timeout": 4.0,
    "template": "your C++ template here"
}

License

MIT

About

helper to cp people

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages