Adds Format code button on leetcode to format the code using Prettier code formatter
Leetcode Format - A Code Formatting Extension for Prettier Code
'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
Risk impact: Low risk impact
Risk likelihood:
Manifest version: 3
Size: 2.54M
Email: ah*****@gmail.com
URLs: Privacy policy
Ranking
# 14,281
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 for many users, especially with C++.
- Open source extension which allows for community contributions.
- Has been described as a lifesaver for LeetCode users.
- Offers formatting functionality that enhances code readability.
Cons
- Not working on the new Dynamic Layout of LeetCode.
- Formatting issues with certain syntax (e.g., min and max not aligning as desired).
- Does not support Java effectively according to some users.
- Line numbering gets disturbed after installation.
Most mentioned
- Does not work on Dynamic Layout.
- Works perfectly for some languages like C++.
- Feature request for keyboard shortcut.
- Formatting button missing in the new UI or leetcode.cn.
User 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
626
Himanshu Agrawal
4.71
6,000+
devkaisel
2.91
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.71
40,000+
Aditya
4.06
7,000+
Samarth Tambad
3.67
3,000+