Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Extension for leetcode freeNew to Visual Studio Code? Get it now.
Extension for leetcode free

Extension for leetcode free

Nishit

|
13 installs
| (0) | Free
LeetCode problem testing helper for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Competitive Programming Helper (CPH)

A Visual Studio Code extension to help with competitive programming tasks, particularly focused on LeetCode problem solving.

Features

  • 🔍 Automatically fetch test cases from LeetCode problems
  • ⚡ Run your code against multiple test cases
  • 📊 View test results in a clean, organized interface
  • ✏️ Add custom test cases
  • 🔧 Support for multiple programming languages (C++, Python)
  • 🛠️ Configurable compilation and execution commands

Installation

  1. Clone the repository from GitHub using git clone https://github.com/your-username/cph-extension.git
  2. Open the cloned repository in VS Code
  3. run npm install to install the dependencies.
  4. press F5 key to run the extension in local mode.
  5. New tab will be opened in VS Code with the extension loaded.
  6. Open folder with your solution file.

Usage

Fetching Test Cases

  1. Open your solution file in VS Code
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the command palette
  3. Type "CPH: Fetch Test Cases" and press Enter
  4. Enter the LeetCode problem URL when prompted

Running Tests

  1. Open your solution file
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS)
  3. Type "CPH: Run Test Cases" and press Enter

Adding Custom Test Cases

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS)
  2. Type "CPH: Add Custom Test Case"
  3. Enter your input and expected output when prompted

Supported Languages

  • C++ (.cpp)
  • Python (.py)

Configuration

You can customize the compilation and execution commands in your VS Code settings:

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