Receive problems from Competitive Companion, manage samples in VS Code, and test your solution with one click.
Features
Local HTTP listener: an embedded server (port 10043 by default) receives problems and samples from Competitive Companion.
Problems sidebar: list all received problems, click (or ↑↓) to select, inline rename / open URL / edit JSON / delete.
Samples panel (bottom panel, alongside Terminal): view all samples of the selected problem, test one or all, ✓/✗ per sample, inline editing of input / expected output, add / remove samples.
One-click test: compiles once, then runs each sample with its stdin, compares stdout with expected output, and shows AC / WA / TLE / MLE / OLE / RE / CE per sample.
Local storage: all problems stored in <workspace>/.vscode/problems.json (plain text, portable).
Usage
Open a workspace (problems are saved under .vscode/problems.json).
Configure Competitive Companion in your browser to POST to port 10043.
Click the CC icon on a problem page; the Samples panel automatically focuses on the new problem.
Open your source file (a.cpp, a.py, …) as the active editor.
In the Samples panel, click Test all or Test this sample.
Supported languages
C / C++: .c, .cc, .cpp, .cxx — compiled with g++ (configurable), then the executable is run.
Python: .py — run with the configured interpreter (auto-detected if empty).
Other file types are reported as UNSUPPORTED.
Settings (cc.*)
Key
Default
Description
cc.cpp.compiler
g++
C/C++ compiler (also used for .c)
cc.cpp.args
-O2 -std=c++14
Compile arguments (excluding source file and -o)
cc.python.interpreter
"" (auto)
python3 on Linux/macOS, python on Windows
cc.python.args
""
Python run arguments
cc.timeLimitMs
1000
Per-sample time limit
cc.memoryLimitMB
512
Memory limit (enforced on Linux only, via ulimit -v)
cc.outputLimitKB
10
Stdout limit; exceeding triggers OLE
cc.compareIgnoreTrailingSpaces
true
Ignore trailing spaces/tabs
cc.compareIgnoreTrailingNewlines
true
Ignore trailing blank lines
cc.samplesLayout
vertical
vertical or horizontal
cc.port
10043
Competitive Companion port
Building from source
npm install
npm run compile
npm run package
# → cc-samples-1.0.0.vsix
License
MIT. See the file LICENSE in the project root for the full text.