Adds Format code button on leetcode to format the code using Prettier code formatter
What is Leetcode format?
'Leetcode format' is a Chrome extension that enables users to easily format their code in Leetcode's code editor using the Prettier code formatter. This versatile tool supports both Java, C++, JavaScript, TypeScript and Dart languages and equally functions on LeetCode's old and new UI including the dynamic layout. With its hotkey support, users can quickly format their code to ensure improved readability and cleaner presentation. It continually updates to ensure compatibility with Leetcode's UI changes and to fix-any-existing bugs.
Extension stats
By: Madhur Ahuja
Rating: 4.30
(30)
Creation date: 2020-12-27
Risk impact: Low risk impact
Risk likelihood: Very low risk likelihood
Manifest version: 3
Size: 2.54M
Email: ah*****@gmail.com
URLs: Privacy policy
Ranking
# 13338
Want to check extension ranking and stats more quickly for other Chrome extensions?
Install
Chrome-Stats extension
to view Chrome-Stats data as you browse the Chrome Web Store.
Extension summary
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:
See moreUser reviews
Pros
- Works perfectly on leetcode.com with C++.
- Great for users, a lifesaver for coding challenges.
- Open source, encouraging community contribution.
- Helps fix formatting issues that users face with LeetCode's editor.
- Compatible with multiple languages like JS/TS.
Cons
- Not working on Dynamic Layout or the new UI.
- Formatting issues in certain cases (e.g., min and max formatting).
- Key bindings not functioning on Mac.
- Line numbering gets disturbed after installation.
- The formatting button is missing on leetcode.cn.
Most mentioned
- Does not work on Dynamic Layout even after update.
- Works perfectly and is a lifesaver!
- Feature request: Please add keyboard shortcut.
- Line numbering has been disturbed.
- Formatted code is not maintained in certain scenarios.
Recent reviews
Great Extension , but can you change the formatting of min and max , because if written in the form of min({a,b,c}) , it puts a , b , c in different lines which looks really weird . Thanks!
The key bindings are not working on Mac
Extension safety
Risk impact
Leetcode format requires very minimum permissions.
Risk likelihood
Leetcode format has earned a good reputation and can be trusted.
Upgrade to see risk analysis details
Similar extensions
Here are some Chrome extensions that are similar to Leetcode format:
Leetcode Enhancer LeetCode Buddy Leetcode Custom Themes CodingBuddy LeetHub v2 Leetcode Analyzer LeetCode Video Solutions CF-Predictor LeetCode Timer LeetHub GfG to LeetCode Leetcode Timer
Lovesh Dongre
3.81
10,000+
https://tash-had.com
3.50
1,000+
Vishnuvardhan S
4.64
657
Himanshu Agrawal
4.71
6,000+
devkaisel
2.94
10,000+
Prashant kumar yadav
3.67
792
https://soumya.dev
4.44
30,000+
Wsl_F
4.27
50,000+
Bhanu Prakash
4.35
10,000+
Qasim Wani
3.74
40,000+
Aditya
4.06
7,000+
Samarth Tambad
3.67
3,000+