leetcode-editor

Introduction: Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
More: Author   ReportBugs   OfficialWebsite   
Tags:

Release Snapshot License Plugin Homepage Version Pro Plugin Homepage Version Downloads English Document 中文文档 捐赠 内推

LeetCode Editor overview


Introduction

Solve LeetCode problems without leaving your IDE. LeetCode Editor supports leetcode.com and leetcode.cn for problem browsing, local debugging, and submissions.

It is designed for JetBrains IDEs, including IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, GoLand, DataGrip, Rider, MPS, and Android Studio.

Getting Started

Browse, code, run, and submit workflow

Local debugging

Custom template and local debugging workflow

Installation (help)

Configuration

LeetCode Editor settings

  • Path: FileSettingsToolsLeetCode Plugin
  • URL options: Choose leetcode.com or leetcode.cn.
  • Code Type: Java, Python, C++, Python 3, C, C#, JavaScript, Ruby, Swift, Go, Scala, Kotlin, Rust, PHP, Bash, or SQL.
  • LoginName / Password: Credentials for the selected site.
  • Temp File Path: Directory for generated temporary files.
  • proxy (HTTP Proxy): Configure at FileSettingsAppearance & BehaviorSystem SettingsHTTP Proxy.
  • Custom code template: Customize generated code (details, example).
  • LevelColour: Customize problem-difficulty colors; restart the IDE after changing it.

Problem Navigator

LeetCode Editor problem navigator

  • Toolbar
    • login Sign in: Configure an account for the selected website. Accounts for the two sites are independent.
    • logout Sign out: Exit the current account. If sign-in fails, try signing out first.
    • refresh Refresh: Load problems without signing in; submitting still requires an account.
    • pick Pick: Open a random problem.
    • find Find: Open the panel for searching, filtering, and sorting.
    • progress Session: View or switch sessions.
    • toggle Toggle List: Switch between All Problem List, Paginated Problem List, and CodeTop Problem List.
    • config Settings: Open the configuration page.
    • clear Clear: Remove files from the cache directory for the current website. Use it carefully when work has not been submitted.

Context Menu

LeetCode Editor action menu

  • Problem menu: Right-click a problem to use the following actions:
    • Open question: Open the problem; double-clicking a problem does the same.
    • Open content: Show the description and images (requires Markdown support).
    • Open solution: Show the official solution.
    • Open in web: Open the problem in a browser.
    • Submit: Submit the current solution.
    • Submissions: View submission records and select Show detail in the pop-up window.
    • Run Code: Run the default test case for the problem.
    • Testcase: Create custom test cases.
    • Favorite: Add or remove the problem from favorites.
    • Note: Open notes for the problem.
    • Timer: Track solving time in the status bar.
    • Clear cache: Remove cached files for the current problem.
  • Editor menu: Right-click in the editor to access the same actions.
  • Question editor tabs: Content shows the description and images, Solution shows the solution, Submissions shows submission records, and Note shows notes.

Support

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools
AI Daily Digest