CSES Companion is a powerful Chrome extension designed to supercharge your experience on the CSES platform. It seamlessly integrates a professional-grade code editor and a suite of productivity tools directly into the CSES problem pages, allowing you to focus on what matters most: solving problems.
- Integrated Monaco Editor: Enjoy the same coding experience as VS Code with a full-featured editor, including syntax highlighting, auto-completion, and theme support, right on the problem page.
- One-Click Automatic Submission: Say goodbye to manual file uploads. The "Submit" button automatically sends your code to the judge in the correct format.
- Instant Local Testing: Run your code against sample test cases with a single click and see the results instantly, without leaving the page.
- Efficient Template Management: Create, save, and quickly insert your boilerplate code templates for any supported language (C++, Java, Python).
- Persistent Preferences: The extension remembers your preferred language, font size, and code for each problem, so you can pick up right where you left off.
- Automatic Code Saving: Never lose your work. Your code is automatically saved locally as you type.
- Download or Clone the Repository: Get the extension's code on your local machine.
- Load the Extension in Chrome:
- Open Chrome and navigate to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click on "Load unpacked".
- Select the directory where you downloaded/cloned the repository.
- Open Chrome and navigate to
- Configure API Key:
- After loading the extension, click its icon in the Chrome toolbar and select "Options", or right-click the icon and choose "Options".
- On the options page, enter your Judge0 RapidAPI key. You can get a free key from RapidAPI. This is required for the "Run" functionality.
- Navigate to a CSES Problem: Go to any problem on the CSES Problemset.
- Start Coding: The CSES Companion interface will appear below the problem statement. Write your code in the integrated editor.
- Test Your Solution: Use the "Run" button to test your code against the provided sample cases. The results will be displayed below the editor.
- Submit Your Code: Once you're confident in your solution, click the "Submit" button. The extension will handle the submission process for you.
Contributions, issues, and feature requests are welcome! Please feel free to open an issue or submit a pull request to help make CSES Companion even better.