{"id":23651796,"url":"https://github.com/akashsinghiitr/cph-leetcode","last_synced_at":"2026-04-26T20:32:26.675Z","repository":{"id":268981316,"uuid":"906043979","full_name":"akash-singh112/cph-leetcode","owner":"akash-singh112","description":"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.","archived":false,"fork":false,"pushed_at":"2024-12-23T13:30:46.000Z","size":1892,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T16:40:16.902Z","etag":null,"topics":["competitive-programming","data-structures-and-algorithms","leetcode","programming","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akash-singh112.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T03:38:02.000Z","updated_at":"2024-12-23T13:30:49.000Z","dependencies_parsed_at":"2024-12-20T05:30:46.000Z","dependency_job_id":null,"html_url":"https://github.com/akash-singh112/cph-leetcode","commit_stats":null,"previous_names":["akash-singh112/cph-leetcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akash-singh112%2Fcph-leetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akash-singh112%2Fcph-leetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akash-singh112%2Fcph-leetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akash-singh112%2Fcph-leetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akash-singh112","download_url":"https://codeload.github.com/akash-singh112/cph-leetcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239611989,"owners_count":19668272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["competitive-programming","data-structures-and-algorithms","leetcode","programming","vscode-extension"],"created_at":"2024-12-28T16:40:36.085Z","updated_at":"2025-11-16T05:30:15.459Z","avatar_url":"https://github.com/akash-singh112.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPH Leetcode Extension for VS Code\n\n**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!\n\n---\n\n## Features\n\n- Works with LeetCode\n- Fetch sample test cases for problems and store them locally.  \n- Run solutions against fetched test cases directly in VS Code with real-time results.  \n- Access features through the **CPH Leetcode** UI in the VS Code activity bar.\n- Shows discrepancies if actual output does not match expected output.\n\n---\n\n## Screenshots\n\n### Custom UI in Activity Bar\n![Custom UI](images/UI.png)\n\n## Demo Video\n\n- Video Link: [Loom Link](https://www.loom.com/share/2285ce0007b04326a039e0bed20b7ac9?sid=fa81ab3a-f924-4dba-9bf9-9d6aa3ff7296)\n\n---\n\n## Installation\n\n1. Open Visual Studio Code.\n2. Go to the **Extensions** view by clicking on the Extensions icon in the Activity Bar on the side of the window.\n3. Search for `Competitive Programming Helper: Leetcode (cph-lc)`.\n4. Click **Install** to install the extension.\n\nAlternatively, you can install directly from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=akashsinghiitr.cph-lc).\n\n---\n\n## How to Use\n\n1. After installation, navigate to the **CPH Leetcode** view in the activity bar.\n2. Use the following commands from the Command Palette:\n   - **CPH: Fetch Test Cases**: Fetch sample test cases for a problem.\n   - **CPH: Run Test Cases**: Execute your code against the fetched test cases.\n\nAlternatively, you can interact with the UI in the activity bar and perform the same actions.\n\n---\n\n## Supported Languages\n\n- C++\n- Python3\n\n---\n\n## Upcoming Major Updates\n\n- Support for Java\n- Feature for user to extract test cases for Leetcode daily challenge from extension itself\n- Allow users to change default storage folder for test cases (which is currently \"TestData\" in same working directory)\n\n---\n\n## Project Structure\n\n- **icons**: Contains the logo and icons for the extension.\n- **helper-functions/**: Includes utility functions for test case fetching, test case execution, and to fetch HTML for the UI of Extension.\n- **extension.js**: Main Logic for the extension goes here.\n- **final.py**: Python script to fetch sample test cases from desired URL.\n\n---\n\n## Contributing\n\nContributions are welcome! To contribute:\n1. Fork this repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -am 'Add a new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Create a new Pull Request.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Author\n\nMade with ❤️ by Akash. If you find this extension helpful, please give it a ⭐ on [GitHub](https://github.com/akash-singh112).\n\nAlso, if you encounter any issues, or have any questions, feel free to contact me at [akashsingh242678@gmail.com](akashsingh242678@gmail.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashsinghiitr%2Fcph-leetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashsinghiitr%2Fcph-leetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashsinghiitr%2Fcph-leetcode/lists"}