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

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 ,