Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update readme
  • Loading branch information
jdneo committed Mar 13, 2019
commit d928786f2dedcff536a8e0240a14db4f61e58f9c
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,23 @@
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/pick_problem.png" alt="Pick a Problem" />
</p>

- Right click the problem in the `LeetCode Explorer` and select `Show Problem` will generate a new file with the problem description for you.
- Right click the problem in the `LeetCode Explorer` and select `Preview Problem` to see the problem description. Or select `Show Problem` to directly open the file with the problem description.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left click the problem node would also trigger preview window, isn't it necessary to notify this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I'll add this.


> Note: If no folder is opened in VS Code, the extension will save the problem files in **$HOME/.leetcode/**.

> You can switch the default language by triggering the command: `LeetCode: Switch Default Language`.

---

### Show Top Voted Solution
<p align="center">
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/solution.png" alt="Show Top Voted Solution" />
</p>

- Select `Show Top Voted Solution` will display the top voted solution for you.

---

### Submit the Answer
<p align="center">
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/submit.png" alt="Submit the Answer" />
Expand Down
11 changes: 10 additions & 1 deletion docs/README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,23 @@
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/pick_problem.png" alt="选择题目" />
</p>

- 在 `LeetCode Explorer` 中**右键**题目并选择 `Show Problem` 进行答题
- 在 `LeetCode Explorer` 中**右键**题目并选择 `Preview Problem` 查看题目描述,或者选择 `Show Problem` 直接进行答题

> 注意:若当前 VS Code 没有已打开的文件夹,则生成的题目文件会存储于 **$HOME/.leetcode/** 目录下。

> 注意:你可以通过 `LeetCode: Switch Default Language` 命令变更答题时默认使用编程语言。

---

### 查看高票解答
<p align="center">
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/solution.png" alt="高票解答" />
</p>

- 选择 `Show Top Voted Solution` 可查看该题目在讨论区内的高票解答。

---

### 提交答案
<p align="center">
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/submit.png" alt="提交答案" />
Expand Down
Binary file modified docs/imgs/pick_problem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/solution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.