Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CPH (HSN Edition)New to Visual Studio Code? Get it now.
CPH (HSN Edition)

CPH (HSN Edition)

hsn8086

|
27 installs
| (0) | Free
Makes judging, compiling, and downloading problems for competitve programming easy. Also supports auto-submit for a few sites.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Competitive Programming Helper (CPH) - HSN Edition

This project is a customized fork of agrawal-d/cph, designed to improve usability for competitive programming in Visual Studio Code.

Key Changes in HSN Edition

  • Compiler Command Supports Space Separation
    Compiler commands and flags can now be separated by spaces, making it easier to customize build commands for different languages.

  • Default Problem and .cph File Location
    When importing problems, the source file and .cph metadata file are now created in the same directory as the currently focused file, rather than the workspace root. This helps keep your workspace organized.

  • Relative Paths Used Throughout
    All generated and referenced paths are now relative, improving portability and compatibility across different environments.

Quick Start

  1. Install this extension in VS Code.
  2. Install the Competitive Companion browser extension.
  3. On a problem page, click the green plus (+) button in your browser to send the problem to VS Code.
  4. The problem file and .cph file will appear in the same directory as your focused file, with testcases preloaded.
  5. Press Ctrl+Alt+B to run and judge your solution.

(Optional)

  • Install cph-submit for direct Codeforces submission.
  • For Kattis, follow instructions on the Kattis help page.

Features

  • Automatic compilation with error display.
  • Intelligent judge supporting signals, timeouts, and runtime errors.
  • Seamless integration with Competitive Companion.
  • Auto-submit support for Codeforces and Kattis.
  • Local testing for custom problems.
  • Supports multiple programming languages.
  • Problem files and metadata are stored in the current directory for better organization.

Supported Languages

  • C++
  • C
  • C#
  • Rust
  • Go
  • Haskell
  • Python
  • Ruby
  • Java
  • JavaScript (Node.js)

Contributing

  • File bug reports or feature requests.
  • Help develop the extension (see developer guide).
  • Spread the word!

Before submitting a Pull Request, please open an issue to discuss your approach.

License

This project is licensed under the GNU GPL v3 or later. See LICENSE.


Original repository: agrawal-d/cph

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