We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc8570d commit d7c90cbCopy full SHA for d7c90cb
content/chapter-3/305.md
@@ -1,6 +1,6 @@
1
---
2
-id:
3
-title: "[译] [305] 使用 Copilot 设计函数的循环"
+id: 40
+title: "[译] [305] 使用 Copilot 设计函数的流程"
4
5
6
@@ -19,10 +19,12 @@ Designing functions with Copilot involves the following cycle of steps (see figu
19
1. If the code is correct after multiple tests, move on.
20
1. If the code is incorrect, move to step 2 and edit the prompt.
21
22
-1. 明确函数想要实现的行为。
23
-2. 构建一段清晰准确的提示词来描述函数。
+<!-- -->
+
24
+1. 确定函数想要实现的行为。
25
+2. 构建一段尽可能清晰的提示词来描述函数。
26
3. 让 Copilot 生成相应的代码。
-4. 仔细阅读代码,确认其是否符合预期。
27
+4. 通读代码,判断其是否看起来比较合理。
28
5. 对代码进行测试,确认其是否正确。
29
1. 经过多次测试,若代码无误,便可以继续。
30
1. 若发现代码有误,回到第 2 步,对提示词进行调整。
0 commit comments