https://github.com/akash-singh112/cph-leetcode
CPH LeetCode is a VSCode extension designed to streamline the competitive programming workflow. It automates the extraction of test cases from LeetCode problems and saves them locally for offline testing. With real-time progress updates, users can efficiently generate input and output files for problem-solving and debugging.
https://github.com/akash-singh112/cph-leetcode
competitive-programming data-structures-and-algorithms leetcode programming vscode-extension
Last synced: 9 months ago
JSON representation
CPH LeetCode is a VSCode extension designed to streamline the competitive programming workflow. It automates the extraction of test cases from LeetCode problems and saves them locally for offline testing. With real-time progress updates, users can efficiently generate input and output files for problem-solving and debugging.
- Host: GitHub
- URL: https://github.com/akash-singh112/cph-leetcode
- Owner: akash-singh112
- License: mit
- Created: 2024-12-20T03:38:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-23T13:30:46.000Z (11 months ago)
- Last Synced: 2024-12-28T16:40:16.902Z (11 months ago)
- Topics: competitive-programming, data-structures-and-algorithms, leetcode, programming, vscode-extension
- Language: JavaScript
- Homepage:
- Size: 1.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# CPH Leetcode Extension for VS Code
**CPH Leetcode** is a Visual Studio Code extension designed to streamline competitive programming workflows by integrating Leetcode functionalities directly into the editor. Solve problems, fetch test cases, and run solutions—all without leaving VS Code!
---
## Features
- Works with LeetCode
- Fetch sample test cases for problems and store them locally.
- Run solutions against fetched test cases directly in VS Code with real-time results.
- Access features through the **CPH Leetcode** UI in the VS Code activity bar.
- Shows discrepancies if actual output does not match expected output.
---
## Screenshots
### Custom UI in Activity Bar

## Demo Video
- Video Link: [Loom Link](https://www.loom.com/share/2285ce0007b04326a039e0bed20b7ac9?sid=fa81ab3a-f924-4dba-9bf9-9d6aa3ff7296)
---
## Installation
1. Open Visual Studio Code.
2. Go to the **Extensions** view by clicking on the Extensions icon in the Activity Bar on the side of the window.
3. Search for `Competitive Programming Helper: Leetcode (cph-lc)`.
4. Click **Install** to install the extension.
Alternatively, you can install directly from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=akashsinghiitr.cph-lc).
---
## How to Use
1. After installation, navigate to the **CPH Leetcode** view in the activity bar.
2. Use the following commands from the Command Palette:
- **CPH: Fetch Test Cases**: Fetch sample test cases for a problem.
- **CPH: Run Test Cases**: Execute your code against the fetched test cases.
Alternatively, you can interact with the UI in the activity bar and perform the same actions.
---
## Supported Languages
- C++
- Python3
---
## Upcoming Major Updates
- Support for Java
- Feature for user to extract test cases for Leetcode daily challenge from extension itself
- Allow users to change default storage folder for test cases (which is currently "TestData" in same working directory)
---
## Project Structure
- **icons**: Contains the logo and icons for the extension.
- **helper-functions/**: Includes utility functions for test case fetching, test case execution, and to fetch HTML for the UI of Extension.
- **extension.js**: Main Logic for the extension goes here.
- **final.py**: Python script to fetch sample test cases from desired URL.
---
## Contributing
Contributions are welcome! To contribute:
1. Fork this repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit your changes (`git commit -am 'Add a new feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Create a new Pull Request.
---
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
---
## Author
Made with ❤️ by Akash. If you find this extension helpful, please give it a ⭐ on [GitHub](https://github.com/akash-singh112).
Also, if you encounter any issues, or have any questions, feel free to contact me at [akashsingh242678@gmail.com](akashsingh242678@gmail.com)