CPH Web JudgeCPH-style test cases in the VS Code sidebar. Open a C or C++ file, add or import cases, then run one case or all cases. The judge compiles the current editor contents once per batch in Chrome, keeps code and test data on the device, and compares output by whitespace-separated tokens. The timing badge measures elapsed program execution time and excludes compilation. Install on vscode.devWhen the extension is published to the Visual Studio Marketplace, open its listing in vscode.dev and click Install. C and C++ require only the browser. The compiler assets are loaded on the first run. The bundled Clang toolchain targets WebAssembly and supports self-contained C17 and C++20 solutions, with C++ exceptions disabled, including common standard headers via its compatibility version of For an unpublished build, host Build and testRun The optional local runner remains available for Python and JavaScript. Run Test case importThe folder icon accepts JSON arrays or Competitive Companion-shaped JSON containing
CreditsOriginal CPH stylesheet and activity icon by Divyanshu Agrawal and CPH contributors, from agrawal-d/cph, GPL-3.0-or-later. This port adds a browser extension host, a webview adapter, and a local runner. See LICENSE. Codicons are distributed under their bundled license. The browser compiler is browsercc 0.1.1, with LLVM/Clang and WASI SDK, and the browser WASI shim. License notices are bundled in the package. |