A VS Code extension that helps you test LeetCode problems directly in your development environment. Fetch test cases automatically and run them without leaving your editor.
Features
🔄 Automatically fetch test cases from LeetCode problems
⚡ Run test cases directly in VS Code
📝 Support for multiple programming languages
🎯 Real-time test case validation
💻 Local development environment integration
Installation
Method 1: VS Code Marketplace
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "Competitive Programming Helper LeetCode"
Click Install
Method 2: Manual Installation
git clone https://github.com/your-username/cph-leetcode
cd cph-leetcode
npm install
npm run compile
Supported Languages
C++
Python
Java
JavaScript
Usage
Open a LeetCode problem in your browser
Copy the problem URL
In VS Code, use the command palette (Ctrl+Shift+P) and search for "CPH: Fetch Test Cases"
Paste the LeetCode URL when prompted
Test cases will be automatically fetched and ready to use
Write your solution and run tests using the CPH Test Runner
Commands
CPH: Fetch Test Cases - Fetch test cases from LeetCode URL
CPH: Run Test Cases - Run current file against fetched test cases
Requirements
VS Code 1.96.0 or higher
Node.js 22.10.0 or higher
Active internet connection for fetching test cases
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/AmazingFeature)
Commit your changes (git commit -m 'Add some AmazingFeature')
Push to the branch (git push origin feature/AmazingFeature)
Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.