Competitive Programming Plugin for IntelliJ IDEA
Automates setup, testing, and submission - so you can focus purely on problem-solving.
KHelper is a powerful IntelliJ IDEA plugin designed to significantly enhance the competitive programming experience for Kotlin/Java programmers. Inspired by the functionality and spirit of the classic CHelper plugin. KHelper automates tedious setup, testing, and submission tasks, so you can focus purely on solving problems.
This plugin is designed, owned, and maintained by Shikhor Kumer Roy. During development, GitHub Copilot was used as an AI-assisted coding tool to accelerate implementation and improve developer productivity. All architectural decisions, feature design, and final code responsibility remain with the author.
- One Click Problem Import: Works seamlessly with the Competitive Companion browser extension to bring problems directly into your IDE.
- Automatic Code Setup: Instantly generates solution files with your preferred template, no more manual file creation or boilerplate copying and pasting.
- Focus on Solving: With just clicks, eliminate repetitive manual work and concentrate on what matters - solving problems.
- Accident Proof: Detects if a solution file already exists and asks for your permission before overwriting, keeping your hard work safe.
- Instant Testing & Debugging: Automatically sets up IntelliJ Run Configurations so you can run or debug against sample test cases with a single click.
- Test Management: Add and manage custom test cases easily and conveniently.
- Easy Submission: Copy your solution source code with one click or select it directly for submission.
- Theme Support: Toggle between light and dark themes effortlessly.
- Kotlin & Java Support: KHelper supports both Kotlin and Java. You can switch your preferred language and edit templates in Settings > KHelper.
- Java 21 Required: The plugin is built using Java 21. You must run your IDE with a runtime that supports this version (or newer). Using older Java versions (like Java 17) will result in version mismatch errors during debugging or execution.
- Install KHelper in your IntelliJ IDE.
- Install Competitive Companion in your browser (Chrome/Firefox).
- Configure Preferences: Go to Settings > KHelper to select your preferred language (Kotlin/Java) and customize your templates.
- Open your project in IntelliJ.
- Go to a problem in your browser (e.g. on Codeforces).
- Click the Competitive Companion button.
- Start Coding! KHelper will create the file, open it, and set up the run configuration for you.
To build and run the plugin locally:
./gradlew runIdeTo build a distribution file:
./gradlew buildPluginThe output file will be located in build/distributions/.
This project is licensed under the MIT License - see the LICENSE file for details.