|
1 |
| -# leetcode-editor [](https://github.com/shuzijun/leetcode-editor/releases) [](https://github.com/shuzijun/leetcode-editor/actions?query=workflow%3ASnapshot) |
| 1 | +# [![Leetcode Editor][plugin-logo]][gh:leetcode-editor] Leetcode Editor |
| 2 | + |
| 3 | +[![Release][badge:release]][gh:releases] |
| 4 | +[![Snapshot][badge:snapshot]][gh:snapshot] |
| 5 | +[![License][badge:license]][gh:license] |
| 6 | +[![Plugin Homepage][badge:plugin-homepage]][plugin-homepage] |
| 7 | +[![Version][badge:version]][plugin-versions] |
| 8 | +[![Pro Plugin Homepage][badge:plugin-homepage-pro]][plugin-homepage-pro] |
| 9 | +[![Version][badge:pro-version]][plugin-versions-pro] |
| 10 | +[![Downloads][badge:downloads]][plugin-homepage] |
| 11 | +[![English Document][badge:en-doc]][gh:en-doc] |
| 12 | +[![中文文档][badge:zh-doc]][gh:zh-doc] |
| 13 | +[![捐赠][badge:donate]][shuzijun-donate] |
| 14 | +[![中文文档][badge:referrals]][shuzijun-referrals] |
| 15 | + |
| 16 | +<p align="center"><img src="https://s1.imagehub.cc/images/2022/07/10/leetcode-demo.gif" alt="demo" style="width: auto;height: auto;max-width: 90%; max-height: 90%;"></p> |
| 17 | +--- |
2 | 18 |
|
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 | 19 | ## 简介
|
11 |
| - 在IDE中解决LeetCode问题,支持`leetcode.com`与`leetcode.cn`,满足基本的做题需求。 |
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) |
| 20 | + 在IDE中解决LeetCode问题,支持`leetcode.com`与`leetcode.cn`,满足做题和调试的需求。 |
| 21 | + 理论上支持: **IntelliJ IDEA**,**PhpStorm**,**WebStorm**,**PyCharm**,**RubyMine**,**AppCode**,**CLion**,**GoLand**,**DataGrip**,**Rider MPS**,**Android Studio**。 |
14 | 22 |
|
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> |
| 23 | + - [English Document][gh:en-doc] |
| 24 | + - [中文文档][gh:zh-doc] |
| 25 | + |
| 26 | + - 有用的链接 |
| 27 | + - [登录帮助][gh:login-help] |
| 28 | + - [自定义代码生成][gh:custom-code-zh] ([示例][gh:leetcode-question]) |
| 29 | + |
| 30 | + |
| 31 | +## 开始使用 |
| 32 | +<p align="center"><img src="https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/doc/leetcode-editor-3.0.gif" alt="start" style="width: auto;height: auto;max-width: 90%; max-height: 90%;"></p> |
| 33 | + |
20 | 34 |
|
21 | 35 | ## 本地调试
|
22 |
| -<p align="center"> |
23 |
| - <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/customConfig-100.gif" alt="demo"/> |
24 |
| -</p> |
| 36 | +<p align="center"><img src="https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/doc/customConfig-100.gif" alt="loacl" style="width: auto;height: auto;max-width: 90%; max-height: 90%;"></p> |
| 37 | + |
25 | 38 |
|
26 | 39 | ### 安装
|
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) |
| 40 | +- **通过插件库安装** [leetcode-editor][plugin-homepage] |
| 41 | +- **下载文件安装** [releases][gh:releases] |
| 42 | +- **如果您想捐助此项目,可以选择Pro版本** [leetcode-editor-pro][plugin-homepage-pro] |
30 | 43 |
|
31 | 44 | ### 配置(第一次安装需要先配置)
|
32 | 45 |
|
33 |
| -<p align="center"> |
34 |
| - <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/config-3.0.png" alt="settings"/> |
35 |
| -</p> |
| 46 | +<p align="center"><img src="https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/doc/config-3.0.jpg" alt="config" style="width: auto;height: auto;max-width: 90%; max-height: 90%;"></p> |
| 47 | + |
36 | 48 |
|
37 | 49 | - **配置路径**: `File` -> `settings`->`tools`->`leetcode plugin`
|
38 | 50 | - **`URL可选项`**: `leetcode.com`与`leetcode.cn`
|
|
45 | 57 | - **`LevelColour`**: 自定义题目难度颜色,重启后生效
|
46 | 58 | - **`English Content`**: 题目显示英文描述
|
47 | 59 |
|
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> |
| 60 | +### 窗口(主窗口右下角![icon][icon:leetcode]) |
| 61 | + |
| 62 | +<p align="center"><img src="https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/doc/window-3.0.jpg" alt="window" style="width: auto;height: auto;max-width: 90%; max-height: 90%;"></p> |
53 | 63 |
|
54 | 64 | - **工具栏**:
|
55 |
| - - **`登录`**:两个网站的登录帐号不互通,切换网站需配置对应的用户 |
56 |
| - - **`退出`**:退出当前账户,如遇到登录错误,尝试先进行退出 |
57 |
| - - **`刷新`**:在未登录的情况下也可查看刷新加载题目,但是无法提交 |
58 |
| - - **`查找`**:输入内容后回车搜索,再次回车搜索下一个,只会搜索题库节点下 |
59 |
| - - **`折叠`**:折叠全部节点. |
60 |
| - - **`配置`**:快捷跳转到配置界面 |
61 |
| - - **`清理`**:清理配置的缓存目录下的文件,两个网站对应的缓存目录不同,只会清理当前配置的网站下的。部分题目未提交的情况下慎重清理 |
62 |
| - |
63 |
| -- **树**: |
64 |
| - - **`Problems`**:全部题目 |
65 |
| - - **`Difficulty`**:难度分类 |
66 |
| - - **`Tags`**:类型分类 |
67 |
| - - **`Explore`**:探索内容,只包含题目,收费内容不支持;部分题目加载有顺序限制 |
68 |
| - - **`颜色`**:题目颜色代表题目难度 |
69 |
| - - **`符号`**:题目前`√`与`?`代表当前题目解答状态,探索下有 `$` 开头的为付费或者其他情况下无法查看的 |
70 |
| - |
| 65 | + - ![login][icon:login]**`登录`**:两个网站的登录帐号不互通,切换网站需配置对应的用户 |
| 66 | + - ![logout][icon:logout]**`退出`**:退出当前账户,如遇到登录错误,尝试先进行退出 |
| 67 | + - ![refresh][icon:refresh]**`刷新`**:在未登录的情况下也可查看刷新加载题目,但是无法提交 |
| 68 | + - ![pick][icon:pick]**`随机`**:随机一个题目 |
| 69 | + - ![find][icon:find]**`查找`**:打开筛选面板,可以进行搜索、过滤或者排序. |
| 70 | + - ![progress][icon:progress]**`会话`**:打开进度面板,可以查看或者切换进度. |
| 71 | + - ![toggle][icon:toggle]**`切换列表`**:切换到其他列表窗口,包括"所有题目列表"、"分页题目列表"、"CodeTop题目列表". |
| 72 | + - ![config][icon:config]**`配置`**:快捷跳转到配置界面 |
| 73 | + - ![clear][icon:clear]**`清理`**:清理配置的缓存目录下的文件,两个网站对应的缓存目录不同,只会清理当前配置的网站下的。部分题目未提交的情况下慎重清理 |
| 74 | + |
71 | 75 | ### 菜单
|
72 |
| -<p align="center"> |
73 |
| - <img src="https://raw.githubusercontent.com/shuzijun/leetcode-editor/master/doc/menu-3.0.png" alt="menu"/> |
74 |
| -</p> |
| 76 | +<p align="center"><img src="https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/doc/menu-3.0.jpg" alt="menu" style="width: auto;height: auto;max-width: 90%; max-height: 90%;"></p> |
| 77 | + |
75 | 78 |
|
76 | 79 | - **菜单(在题目上右击出现)**:
|
77 | 80 | - **`open question`**:打开题目,在题目上双击也可以打开
|
|
83 | 86 | - **`favorite`**:添加或移除收藏
|
84 | 87 | - **`Clear cache`**:清理当前题目
|
85 | 88 | - **`Timer`**:计时器,开启后在右下角状态栏提示解题时间
|
86 |
| - |
| 89 | +<br> |
87 | 90 | - **Editor菜单(在Editor上右击出现)**:
|
88 |
| - 功能同上 |
| 91 | + 功能同上 |
| 92 | +<br> |
| 93 | +- **问题编辑器**: |
| 94 | + - **`Content`**:查看描述,包含图片 |
| 95 | + - **`Solution`**:查看解答 |
| 96 | + - **`Submissions`**:查看提交记录 |
| 97 | + - **`Note`**:查看笔记 |
89 | 98 |
|
90 | 99 | ### 常见问题
|
91 |
| - [常见问题](https://github.com/shuzijun/leetcode-editor/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) |
| 100 | + [常见问题][gh:question] |
| 101 | + |
| 102 | +### 支持和捐赠 |
| 103 | +* [捐赠][shuzijun-donate] |
| 104 | +* [内推][shuzijun-referrals] |
| 105 | + |
| 106 | + |
| 107 | +[plugin-logo]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/META-INF/pluginIcon.svg |
| 108 | + |
| 109 | +[badge:plugin-homepage]: https://img.shields.io/badge/Plugin%20Home-Leetcode%20Editor-blue?logo=jetbrains&style=flat-square |
| 110 | +[badge:plugin-homepage-pro]: https://img.shields.io/badge/Pro%20Plugin%20Home-Leetcode%20Editor%20Pro-blue?logo=jetbrains&style=flat-square&color=blueviolet |
| 111 | +[badge:release]: https://img.shields.io/github/workflow/status/shuzijun/leetcode-editor/Release?style=flat-square&logo=github&label=Build |
| 112 | +[badge:snapshot]: https://img.shields.io/github/workflow/status/shuzijun/leetcode-editor/Snapshot?style=flat-square&logo=github&label=Build |
| 113 | +[badge:license]: https://img.shields.io/github/license/shuzijun/leetcode-editor.svg?style=flat-square&&label=License |
| 114 | +[badge:downloads]: https://img.shields.io/jetbrains/plugin/d/12132?style=flat-square&label=Plugin%20Downloads&logo=jetbrains |
| 115 | +[badge:version]: https://img.shields.io/jetbrains/plugin/v/12132?label=Plugin%20Version&logo=jetbrains&style=flat-square |
| 116 | +[badge:pro-version]: https://img.shields.io/jetbrains/plugin/v/17166?label=Pro%20Plugin%20Version&logo=jetbrains&style=flat-square&color=blueviolet |
| 117 | +[badge:en-doc]: https://img.shields.io/badge/Docs-English%20Document-blue?logo=docs&style=flat-square |
| 118 | +[badge:zh-doc]: https://img.shields.io/badge/Docs-中文文档-blue?logo=docs&style=flat-square |
| 119 | +[badge:donate]: https://img.shields.io/badge/Docs-捐赠-blue?logo=docs&style=flat-square |
| 120 | +[badge:referrals]: https://img.shields.io/badge/Docs-内推-blue?logo=docs&style=flat-square |
| 121 | + |
| 122 | + |
| 123 | +[icon:leetcode]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/LeetCode_dark.svg |
| 124 | +[icon:login]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/login_dark.svg |
| 125 | +[icon:logout]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/logout_dark.svg |
| 126 | +[icon:refresh]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/refresh_dark.svg |
| 127 | +[icon:pick]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/random_dark.svg |
| 128 | +[icon:find]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/find_dark.svg |
| 129 | +[icon:progress]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/progress_dark.svg |
| 130 | +[icon:toggle]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/src/main/resources/icons/toggle_dark.svg |
| 131 | +[icon:config]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@sync/src/main/resources/icons/config_lc_dark.svg |
| 132 | +[icon:clear]: https://cdn.jsdelivr.net/gh/shuzijun/leetcode-editor@master/src/main/resources/icons/clear_dark.svg |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | +[gh:leetcode-editor]: https://github.com/shuzijun/leetcode-editor |
| 137 | +[gh:releases]: https://github.com/shuzijun/leetcode-editor/releases |
| 138 | +[gh:snapshot]: https://github.com/shuzijun/leetcode-editor/actions?query=workflow%3ASnapshot |
| 139 | +[gh:license]: https://github.com/shuzijun/leetcode-editor/blob/master/LICENSE |
| 140 | +[gh:en-doc]: https://github.com/shuzijun/leetcode-editor/blob/master/README.md |
| 141 | +[gh:zh-doc]: #简介 |
| 142 | +[gh:login-help]: https://github.com/shuzijun/leetcode-editor/blob/master/doc/LoginHelp_ZH.md |
| 143 | +[gh:custom-code-zh]: https://github.com/shuzijun/leetcode-editor/blob/master/doc/LoginHelp_ZH.md |
| 144 | +[gh:leetcode-question]: https://github.com/shuzijun/leetcode-question |
| 145 | +[gh:question]: https://github.com/shuzijun/leetcode-editor/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 |
| 146 | + |
| 147 | +[plugin-homepage]: https://plugins.jetbrains.com/plugin/12132-leetcode-editor |
| 148 | +[plugin-versions]: https://plugins.jetbrains.com/plugin/12132-leetcode-editor/versions |
| 149 | +[plugin-homepage-pro]: https://plugins.jetbrains.com/plugin/17166-leetcode-editor-pro |
| 150 | +[plugin-versions-pro]: https://plugins.jetbrains.com/plugin/17166-leetcode-editor-pro/versions |
| 151 | + |
| 152 | +[shuzijun-donate]: https://shuzijun.cn/donate.html |
| 153 | +[shuzijun-referrals]: https://shuzijun.cn/referrals.html |
| 154 | + |
| 155 | +[image:demo]: |
0 commit comments