CP Runner
A VS Code extension that runs competitive programming test cases directly in your editor.
Features
- Parses problems from Competitive Companion (Codeforces, AtCoder, etc.)
- Supports C++, C, Java, and Python
- Run all tests at once or a single test case individually
- Live output streaming with pass/fail/TLE/MLE/RTE/compile error statuses
- Auto-import a code template when a new problem file is created
- Configurable diff options (trailing whitespace, line endings, float tolerance)
Usage
- Open a
.cpp, .c, .java, or .py file
- Add test cases manually or parse from Competitive Companion
- Press
Ctrl+Alt+R to run all tests, or click play on a single test card
- Press
Ctrl+Alt+S to stop execution
Requirements
Install only what you need:
- C++:
g++ in PATH
- C:
gcc in PATH
- Java:
javac and java in PATH
- Python:
python3 in PATH
License
MIT
| |