简介
在IDE中解决LeetCode问题,支持leetcode.com与leetcode-cn.com,满足基本的做题需求。
理论上支持: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio。
be with you!
使用方式
安装
- 通过插件库安装 https://plugins.jetbrains.com/plugin/12132-leetcode-editor
- 下载文件安装 https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/leetcode-editor.zip
配置(第一次安装需要先配置)
- 配置路径: File -> settings->tools->leetcode plugin
- URL可选项: leetcode.com与leetcode-cn.com
- Code Type: Java,Python,C++,Python3,C,C#,JavaScript,Ruby,Swift,Go,Scala,Kotlin,Rust,PHP
- LoginName: 登录用户名
- Password: 登录密码
- Temp File Path: 临时文件存放目录
窗口(主窗口右下角)
- 工具栏:
- 树:
菜单
- 菜单(在题目上右击出现):
- open question:打开题目,在题目上双击也可以打开
- Submit:提交题目
- Submissions:查看提交记录,在弹出的窗口上选择记录查看详情(Show detail)
- Run Code:运行代码,默认使用题目的测试用例
- Testcase:自定义测试用例
- Clear cache:清理当前题目
项目地址:https://github.com/shuzijun/leetcode-editor
Go语言中文网,致力于每日分享编码、开源等知识,欢迎关注我,会有意想不到的收获!