Leetcode format

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.
Install from Chrome Web Store

Extension stats

Manifest V3
Users: 5,000+
Rating: 4.30
(30)
Version: 1.9 (Last updated: 2023-12-25)
Creation date: 2020-12-27
Size: 2.54M
Full description: See detailed description

Other platforms

Not available on Android
LeetCode format (v1.0)
41 3.00 (2)
Not available on Edge

User reviews

These summaries are automatically generated weekly using AI based on recent user reviews. Chrome Web Store does not verify user reviews, so some user reviews may be inaccurate, spammy, or outdated.
Pros
  • Works well in Split View mode
  • Helpful for formatting code on LeetCode
  • Open source and encourages contributions
  • User-friendly for JavaScript/TypeScript and C++
  • Great extension for LeetCode users
Cons
  • Formatting issues in new Dynamic Layout
  • Key bindings not working on Mac
  • Extension stops working after updates on new UI
  • Formatting button not appearing in certain layouts
  • Line numbering issues after installation
Most mentioned
  • Does not work on Dynamic Layout after updates
  • Formatting issues with min and max syntax
  • Request for keyboard shortcuts
  • Questions about key bindings
  • Works but needs a clearer interface for new users
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!
by Harsh Narayan, 2024-01-19

The key bindings are not working on Mac
by Aman malik, 2024-01-16

what's the key binding to format the code?
by Mayank Yadav, 2024-01-03
View all user reviews

Extension safety

Risk impact

Leetcode format requires very minimum permissions.

Risk impact analysis details
  • High Injects scripts into web pages, which may alter or extract site contents, resulting in a substantial risk.
  • Low ******* ****** ** *** ********* ********
Risk likelihood

We don't have sufficient data to confidently determine the risk likelihood of Leetcode format. Use it at your own risk.

Risk likelihood analysis details
  • High This extension has low user count. Unpopular extensions may not be stable or safe.
  • Low **** ********* *** ******* **** **** * ****** **** ***** ******** *** **** ****** ** ** ****** *** *****
  • Low **** ********* *** ***** **** **** * ****** **** ***** ********** *** **** ****** ** ** ****** *** *****
  • Good **** ********* ** * ******** ********* ** ****** *** *****
  • Good **** ********* *** **** **** *******
Upgrade to see full risk analysis details

Similar extensions

Here are some Chrome extensions that are similar to Leetcode format: