Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CPsetup-By-AKSNew to Visual Studio Code? Get it now.
CPsetup-By-AKS

CPsetup-By-AKS

Akshat Kumar Sinha

|
1 install
| (0) | Free
A lightweight competitive programming runner for C++, Java, and Python.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Competitive Coding Runner Setup for VScode

CP Runner is a lightning-fast, lightweight Visual Studio Code extension built specifically for competitive programmers. It lets you run and test C++, Java, and Python code instantly with built-in Time Limit Exceeded (TLE) protection, custom input handling, and cross-platform process memory tracking.


🚀 Features

  • Multi-Language Support: Seamlessly compiles and runs C++, Java, and Python code.
  • TLE Protection: Automatically kills runaway infinite loops and terminates processes exceeding your configured time limit, displaying any partial output generated up to that point.
  • Peak Memory & Time Metrics: Tracks precise execution time (in ms) and peak RAM usage (in MB) cross-platform.
  • Smart Heuristics: Automatically detects competitive programming folders and sets up workflows without interfering with large projects.
  • Interactive Webview UI: Clean side panel for input management, real-time output display, and error logging.

📋 Requirements

To run code successfully, ensure you have the appropriate runtimes installed and added to your system's PATH:

  • C++: GCC / G++ (g++)
  • Java: Java Development Kit (javac & java)
  • Python: Python 3 (python3 or python)

⌨️ Usage

  1. Open any standalone .cpp, .java, or .py file.
  2. Open the CP Runner panel or trigger the run command via your command palette / shortcut.
  3. Provide any custom test case inputs and view your output along with execution metrics instantly!

⚙️ Extension Settings

This extension contributes the following settings:

  • cp-runner.timeout: Sets the time limit in milliseconds before triggering TLE (default: 3000ms).

👨‍💻 Author

Akshat Kumar Sinha

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft