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.
- 🔄 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
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Competitive Programming Helper LeetCode"
- Click Install
git clone https://github.com/your-username/cph-leetcode
cd cph-leetcode
npm install
npm run compile- C++
- Python
- Java
- JavaScript
- 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
CPH: Fetch Test Cases- Fetch test cases from LeetCode URLCPH: Run Test Cases- Run current file against fetched test cases
- VS Code 1.96.0 or higher
- Node.js 22.10.0 or higher
- Active internet connection for fetching test cases
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
This project is licensed under the MIT License - see the LICENSE file for details.
~ Made with ❤️ for competitive programmers


