https://github.com/typed-sigterm/oi-runner-2
专为 OIer 和 ACMer 设计的 VS Code 插件,用于运行单文件程序 / VS Code extension designed for competitive programming, used to run single file program
https://github.com/typed-sigterm/oi-runner-2
acm acm-icpc codeforces competitive-programming debugger icpc oi vscode-extension
Last synced: 17 days ago
JSON representation
专为 OIer 和 ACMer 设计的 VS Code 插件,用于运行单文件程序 / VS Code extension designed for competitive programming, used to run single file program
- Host: GitHub
- URL: https://github.com/typed-sigterm/oi-runner-2
- Owner: typed-sigterm
- License: mit
- Created: 2024-06-21T06:41:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-05-09T06:42:51.000Z (25 days ago)
- Last Synced: 2026-05-09T08:38:35.005Z (25 days ago)
- Topics: acm, acm-icpc, codeforces, competitive-programming, debugger, icpc, oi, vscode-extension
- Language: Vue
- Homepage: https://marketplace.visualstudio.com/items?itemName=typed-sigterm.oi-runner-2
- Size: 4.72 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# OI Runner++    [](https://github.com/typed-sigterm/oi-runner-2)
> English|[简体中文](https://gitee.com/typed-sigterm/oi-runner-2/blob/main/README.zh-CN.md)
VS Code extension designed for OIers and ACMers, for running single-file programs.

## Quick Start
The Story Behind OI Runner++
Running single C++ files in VS Code isn't straightforward, and I've **suffered** from this. Online tutorials often require configuring **lengthy, complex, and arcane** `.vscode/launch.json` and `.vscode/tasks.json` files, which is pure torture.
Compared to that, the [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) extension offers a better experience, but it's not suitable for the specific scenario of OI (competitive programming):
- It leaves messy history in the Terminal.
- It doesn't show execution time or exit code.
- You have to manually input test cases every time.
Later, I discovered [OI Runner](https://marketplace.visualstudio.com/items?itemName=CmdBlock.oi-runner). It's tailor-made for the OI scenario, and I personally think its experience is nearly perfect. However, after using it for a while, some issues became apparent:
- Execution time and exit code are mixed with the output.
- There's no status indication for compiling/running.
- The stop button doesn't work.
- The working directory for compilation/execution is the source file's directory, not the workspace directory.
I submitted a [PR](https://github.com/CmdBlockZQG/oi-runner/pull/9), but the maintainer seems to have abandoned OI Runner and didn't respond.
On 2024/6/21, I decided to develop OI Runner++, completely rewriting it based on OI Runner and releasing it. Therefore, OI Runner++ retains OI Runner's concise UI design but improves upon many features.
Install the extension from one of:
- [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=typed-sigterm.oi-runner-2)
- [Open VSX](https://open-vsx.org/extension/typed-sigterm/oi-runner-2)
For a quick start guide:
1. Open the Command Palette (Ctrl + Shift + P)
2. Enter & select `Welcome: Open Walkthrough...`
3. Enter & select `Get Started with OI Runner++`
## Configuration
All configuration descriptions can be accessed via the VS Code settings UI (Ctrl + ,) by searching for `@ext:typed-sigterm.oi-runner-2`.
## Telemetry
OI Runner++ collects some telemetry data to help improve the extension (e.g., understanding which VS Code versions need to be supported). You can search for `mixpanel.track` in the source code repository to see what information is collected.
Telemetry data does not include personal or sensitive information and is used for statistical purposes only. You can disable telemetry by setting VS Code's `telemetry.feedback.enabled` to `false` and restarting VS Code.
## Credits
This project is deeply inspired by [OI Runner](https://github.com/CmdBlockZQG/oi-runner). Thanks to [@CmdBlockZQG](https://github.com/CmdBlockZQG) and other contributors of OI Runner.