/leetcode-editor

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

Primary LanguageJavaApache License 2.0Apache-2.0

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.
be with you!

How to use

demo

Local debugging

demo

Installation(help)

Configuration (configuration for first installation)

settings

  • Configuration path: File -> settings->tools->leetcode plugin
    • URL options: leetcode.comORleetcode-cn.com
    • Code Type: Java,Python,C++,Python3,C,C#,JavaScript,Ruby,Swift,Go ,Scala,Kotlin,Rust,PHP
    • LoginName: Login Username
    • Password: Login password
    • Temp File Path: Temporary file storage catalogue
    • proxy(HTTP Proxy): HTTP Proxy,config path:File -> settings->Appearance & Behavior->System Settings->HTTP Proxy
    • Custom code template: Custom code template (details)(demo)
    • LevelColour: Customize the difficulty color of the question, it will take effect after restart

Window (Icon in the lower right corner of the main windowicon)

window

  • Toolbar:

    • loginSign in:The login accounts of the two websites are not interoperable and the corresponding users need to be configured when switching websites.
    • logoutSign out:Exit the current account, if you encounter a login error, try to exit first.
    • refreshRefresh:You can also refresh and load questions if you are not logged in, but you cannot submit it.
    • findFind:Input the content and press Enter to search , press again to search for the next one. It can only search under the question bank node.
    • collapseCollapse:Collapse all nodes.
    • configSettings:Quick jump to the configuration page.
    • clearClear:Clean up the files in the configured cache directories. The cache directories of the two websites are different and only the current configured websites are cleaned up. Carefully clean up cases without submitting.
  • Tree:

    • Problems:All questions
    • Difficulty:Classification of difficulties
    • Tags:Classification of types
    • Explore:Explore content, only contains titles of the questions, exclusive content that needs to pay ; some questions are loaded in order
    • Color:The color represents the difficulty of the question
    • Symbol:The symbols of “√” and “?” represent the status of the current questions, and explores with the beginning of “$” needs to pay or that cannot be viewed due to other causes.

Menu

menu

  • Menu (right-click on the questions):
    • open question:Open the question or double click on the question
    • open content:Show content(Rely on Markdown)
    • Submit:Submit the question
    • Submissions:View the submission record, select the record details in the pop-up window(Show detail)
    • Run Code:Run the code, the test case for the question is used by default
    • Testcase:Customize test cases
    • favorite:Add or remove favorite
    • Clear cache:Clean up the current question