Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Competitive Companion SamplesNew to Visual Studio Code? Get it now.
Competitive Companion Samples

Competitive Companion Samples

ZBXAPCY

|
3 installs
| (0) | Free
Receive problems from Competitive Companion, manage samples, and test with one click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Competitive Companion Samples

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

  1. Open a workspace (problems are saved under .vscode/problems.json).
  2. Configure Competitive Companion in your browser to POST to port 10043.
  3. Click the CC icon on a problem page; the Samples panel automatically focuses on the new problem.
  4. Open your source file (a.cpp, a.py, …) as the active editor.
  5. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft