Adds Format code button on leetcode to format the code using Prettier code formatter

Latest Version

Version
1.9
Update
December 24, 2023
Size
2.42MiB
Developer
Category
Users
5,000+
Rating
4.3 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
See more

Leetcode format Extension

This Google chrome extension adds the Format button to the LeetCode code editor. Currently supported programming languages are Java, C++, JavaScript, TypeScript and Dart.

Supports LeetCode old and new UI both, including dynamic layout.

Release Notes 1.9:
* Bug fix with dynamic layout

Release Notes 1.8:
* Bug fixes

Release Notes 1.7:
* Bug fixes for new UI
* Add hotkey support for old UI as well

Release Notes v1.6:
* Added hotkey support (CTRL + ALT + F)

Release Notes v1.5:
* Added support for both old and new UI.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Leetcode format", "version": "1.9", "manifest_version": 3, "description": "Adds Format code button on leetcode to format the code using Prettier code formatter", "homepage_url": "https://github.com/madhur/leetcode-format-chrome-extension", "icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "content_scripts": [ { "js": [ "content.js" ], "matches": [ "https://*.leetcode.com/*", "https://*.leetcode.cn/*" ] } ], "web_accessible_resources": [ { "resources": [ "dart-style.js", "standalone.js", "parser-babel.mjs", "parser-typescript.mjs", "parser-java.js", "beautify.js", "script.js" ], "matches": [ "https://*.leetcode.com/*", "https://*.leetcode.cn/*" ] } ]}
Read more

How to download and manually install Leetcode format extension for Chrome

Looking for a way to install Leetcode format extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Leetcode format extensions manually, this article outlines two simple methods to effortlessly install Leetcode format extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Leetcode format extension and manually install through Drag &Drop

If you ever need to manually install a Leetcode format extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Leetcode format Extension by clicking the "Download CRX" button on the website.

Look for the Leetcode format extension you wish to install. Go to the website and download the Leetcode format extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Leetcode format extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Leetcode format extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Leetcode format extension for Chrome and install in Developer Mode

This is another method to install Leetcode format extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Leetcode format extension file

Select and download the Leetcode format extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Leetcode format extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Leetcode format extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Leetcode format extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Leetcode format extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Leetcode Enhancer Extension · Productivity 5,000+ 42 ★ 49.68KiB

icon

LeetCode Buddy Extension · Productivity 5,000+ 4 ★ 201KiB

icon

Leetcode Custom Themes Extension · Productivity 5,000+ 11 ★ 131KiB

icon

CodingBuddy Extension · Productivity 5,000+ 93 ★ 328KiB

icon

LeetHub v2 Extension · Productivity 5,000+ 64 ★ 257KiB

icon

Leetcode Analyzer Extension · Productivity 5,000+ 15 ★ 418KiB

icon

LeetCode Video Solutions Extension · Productivity 5,000+ 72 ★ 84.69KiB

icon

CF-Predictor Extension · Developer Tools 5,000+ 161 ★ 84.96KiB

icon

LeetCode Timer Extension · Developer Tools 5,000+ 20 ★ 279KiB

icon

LeetHub Extension · Developer Tools 5,000+ 92 ★ 22.43MiB

icon

GfG to LeetCode Extension · Developer Tools 5,000+ 16 ★ 267KiB

icon

Leetcode Timer Extension · Productivity 5,000+ 9 ★ 198KiB

icon

CF Analytics Extension · Productivity 5,000+ 61 ★ 114KiB

icon

LeetCode Mistake Tracker Extension · Developer Tools 5,000+ 6 ★ 226KiB

icon

Competitive Companion Extension · Developer Tools 5,000+ 84 ★ 572KiB

icon

LC Predictor Extension · Developer Tools 5,000+ 17 ★ 172KiB

icon

InterviewBit Extension · Productivity 5,000+ 17 ★ 217KiB

icon

LeetRecur - Spaced Repetition for Leetcode Extension · Productivity 5,000+ 13 ★ 86.86KiB

icon

Codeforces Practice Tracker Extension · Developer Tools 5,000+ 36 ★ 109KiB

icon

Codeforces Enhancer Extension · Developer Tools 5,000+ 38 ★ 25.12KiB

icon

LeetCode Reminder Extension · Productivity 5,000+ 0 ★ 392KiB

icon

Leetcode Explained Extension · Productivity 5,000+ 24 ★ 757KiB

icon

Leetcode Helper Extension · Developer Tools 5,000+ 16 ★ 423KiB

icon

Coder's Calendar Extension · Developer Tools 5,000+ 397 ★ 633KiB

User reviews

icon

Harsh Kumar (ID: 00000089b3481ff9) Voted 3 ★ - Updated 10/19/2023 Does not work on Dynamic Layout even after update.

icon

Chirag M R (ID: 000000d55ec7f654) Voted 3 ★ - Updated 09/21/2023 it is not working in the new leetcode website,

icon

A Google user (ID: 000000e88a6ebf7e) Voted 5 ★ - Updated 09/13/2023 Works perfectly and is a lifesaver! Thanks for this extension. It's also open source, so I hope lots of people contribute. One thing, I have Leetcode Premium, and Leetcode recently gave an option to switch to "Dynamic Layout", which lets you move and re-arrange sections. In "Dynamic Layout", the "Format" button no longer appears. I have reverted to "Split View" mode, which is the default layout, and the "Format" button appears again. Just a heads up in case this beta(?) feature rolls out to everyone.

icon

Soumyadeep Biswas (ID: 0000003805253af3) Voted 5 ★ - Updated 08/13/2023 One of the best extensions for LeetCode users.

icon

Harshit Maurya (ID: 0000000002539a0c) Voted 3 ★ - Updated 05/26/2023 it stop working for OLD UI after update please add that too ,