# 任务 2：先利其器

Hi，你好，我是 JimmyLv 吕靖，这是你开始 前端 TDD 练习的第 2 天，**第一次使用 TDD 编码的感觉怎么样？**

完整实现一遍 FizzBuzz 用了你多长时间？

如果没能在 15 分钟内完成的话，不好意思，不合格的程序员说的就是你了……

当然很有可能你的工作环境就没有进入最佳状态，拖慢了你编程的速度。

**现在开始第二件事——反复训练，在过程中不断优化，整理一下你的工作环境**

## 这一次任务新的练习要求：

1. 打开 WebStorm（如果没有的话，现在去装一个，社区版是免费的）
2. 把 IDE 的快捷键提示表打印出来（另外推荐一个快捷键提示的插件：[Key Promoter X](https://plugins.jetbrains.com/plugin/9792-key-promoter-x/)）
3. 再做一遍 FizzBuzz，不一定要做完，实现第一部分的功能即可
4. **但是！注意！这次做 FizzBuzz 的时候不准动鼠标**

**这一遍我要你做的是：**

* 今天学到了什么新的快捷键操作？
* 不准动鼠标的规定在什么时候感到最难遵守？
* 第二遍做这道题目，是否还有卡壳的情况？为什么？

在这段时间里，我希望你能在三遍的基础上反复训练，有问题随时在群里同步。

## 思考一下

再想一想，哪些重复代码一直在敲，是否可以识别模式抽取下 live template？

另外可以看看 IDE 已经内置的 live template，学习如何使用它们：

![](/files/-M1ictY4Ny7bz84iQ-jU)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jimmylv.gitbook.io/tdd-frontend/coding/00-project-fizzbuzz/05-improve-your-toolkit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
