|
| 1 | +# leetcode-editor [](https://github.com/shuzijun/leetcode-editor/releases) [](https://github.com/shuzijun/leetcode-editor/actions?query=workflow%3ASnapshot) |
| 2 | + |
| 3 | + - [English Document](https://github.com/shuzijun/leetcode-editor/blob/master/README.md) |
| 4 | + - [中文文档](#简介) |
| 5 | + |
| 6 | + - 有用的链接 |
| 7 | + - [登录帮助](https://github.com/shuzijun/leetcode-editor/blob/master/doc/LoginHelp_ZH.md) |
| 8 | + - [自定义代码生成](https://github.com/shuzijun/leetcode-editor/blob/master/doc/CustomCode_ZH.md) ([示例](https://github.com/shuzijun/leetcode-question)) |
| 9 | + |
| 10 | +## 简介 |
| 11 | + 在IDE中解决LeetCode问题,支持`leetcode.com`与`leetcode-cn.com`,满足基本的做题需求。 |
| 12 | + 理论上支持: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio。 |
| 13 | + [be with you!](http://shuzijun.cn/leetcode-editor/monitor.html) |
| 14 | + |
| 15 | + |
| 16 | +## 使用方式 |
| 17 | +<p align="center"> |
| 18 | + <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/leetcode-editor-3.0.gif" alt="demo"/> |
| 19 | +</p> |
| 20 | + |
| 21 | +## 本地调试 |
| 22 | +<p align="center"> |
| 23 | + <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/customConfig-100.gif" alt="demo"/> |
| 24 | +</p> |
| 25 | + |
| 26 | +### 安装 |
| 27 | +- **通过插件库安装** [leetcode-editor](https://plugins.jetbrains.com/plugin/12132-leetcode-editor) |
| 28 | +- **下载文件安装** [releases](https://github.com/shuzijun/leetcode-editor/releases) |
| 29 | +- **如果您想捐助此项目,可以选择pro版本** [leetcode-editor-pro](https://plugins.jetbrains.com/plugin/17166-leetcode-editor-pro) |
| 30 | + |
| 31 | +### 配置(第一次安装需要先配置) |
| 32 | + |
| 33 | +<p align="center"> |
| 34 | + <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/config-3.0.png" alt="settings"/> |
| 35 | +</p> |
| 36 | + |
| 37 | +- **配置路径**: `File` -> `settings`->`tools`->`leetcode plugin` |
| 38 | + - **`URL可选项`**: `leetcode.com`与`leetcode-cn.com` |
| 39 | + - **`Code Type`**: `Java`,`Python`,`C++`,`Python3`,`C`,`C#`,`JavaScript`,`Ruby`,`Swift`,`Go` ,`Scala`,`Kotlin`,`Rust`,`PHP`,`Bash`,`SQL` |
| 40 | + - **`LoginName`**: 登录用户名 |
| 41 | + - **`Password`**: 登录密码 |
| 42 | + - **`Temp File Path`**: 临时文件存放目录 |
| 43 | + - **`proxy(HTTP Proxy)`**: 使用http代理,配置路径:`File` -> `settings`->`Appearance & Behavior`->`System Settings`->`HTTP Proxy` |
| 44 | + - **`Custom code template`**: 自定义代码生成模板 ([详细介绍](https://github.com/shuzijun/leetcode-editor/blob/master/doc/CustomCode_ZH.md))([示例](https://github.com/shuzijun/leetcode-question)) |
| 45 | + - **`LevelColour`**: 自定义题目难度颜色,重启后生效 |
| 46 | + - **`English Content`**: 题目显示英文描述 |
| 47 | + |
| 48 | +### 窗口(主窗口右下角) |
| 49 | + |
| 50 | +<p align="center"> |
| 51 | + <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/window-3.0.png" alt="window"/> |
| 52 | +</p> |
| 53 | + |
| 54 | +- **工具栏**: |
| 55 | + - **`登录`**:两个网站的登录帐号不互通,切换网站需配置对应的用户 |
| 56 | + - **`退出`**:退出当前账户,如遇到登录错误,尝试先进行退出 |
| 57 | + - **`刷新`**:在未登录的情况下也可查看刷新加载题目,但是无法提交 |
| 58 | + - **`查找`**:输入内容后回车搜索,再次回车搜索下一个,只会搜索题库节点下 |
| 59 | + - **`折叠`**:折叠全部节点. |
| 60 | + - **`配置`**:快捷跳转到配置界面 |
| 61 | + - **`清理`**:清理配置的缓存目录下的文件,两个网站对应的缓存目录不同,只会清理当前配置的网站下的。部分题目未提交的情况下慎重清理 |
| 62 | + |
| 63 | +- **树**: |
| 64 | + - **`Problems`**:全部题目 |
| 65 | + - **`Difficulty`**:难度分类 |
| 66 | + - **`Tags`**:类型分类 |
| 67 | + - **`Explore`**:探索内容,只包含题目,收费内容不支持;部分题目加载有顺序限制 |
| 68 | + - **`颜色`**:题目颜色代表题目难度 |
| 69 | + - **`符号`**:题目前`√`与`?`代表当前题目解答状态,探索下有 `$` 开头的为付费或者其他情况下无法查看的 |
| 70 | + |
| 71 | +### 菜单 |
| 72 | +<p align="center"> |
| 73 | + <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/menu-3.0.png" alt="menu"/> |
| 74 | +</p> |
| 75 | + |
| 76 | +- **菜单(在题目上右击出现)**: |
| 77 | + - **`open question`**:打开题目,在题目上双击也可以打开 |
| 78 | + - **`open content`**:查看描述,包含图片(依赖 Markdown) |
| 79 | + - **`Submit`**:提交题目 |
| 80 | + - **`Submissions`**:查看提交记录,在弹出的窗口上选择记录查看详情(`Show detail`) |
| 81 | + - **`Run Code`**:运行代码,默认使用题目的测试用例 |
| 82 | + - **`Testcase`**:自定义测试用例 |
| 83 | + - **`favorite`**:添加或移除收藏 |
| 84 | + - **`Clear cache`**:清理当前题目 |
| 85 | + - **`Timer`**:计时器,开启后在右下角状态栏提示解题时间 |
| 86 | + |
| 87 | +- **Editor菜单(在Editor上右击出现)**: |
| 88 | + 功能同上 |
| 89 | + |
| 90 | +### 常见问题 |
| 91 | + [常见问题](https://github.com/shuzijun/leetcode-editor/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) |
0 commit comments