This is a Chrome extension that lets you download the LeetCode editor's code as a file.
- Extracts code from the LeetCode editor
- Converts problem titles into PascalCase class names
- Replaces
class Solutionwithpublic class <ProblemTitle>*only for Java for now - Allows you to download the solution as a code file as per selected language
- Preserves the problem URL as a comment in the file
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Click Load unpacked and select the folder containing this extension
- The extension icon should now appear in Chrome
- Open any LeetCode problem
- Click the "Create Java File" button near the code editor tab
- Choose where to save the code file when prompted
