AI assistants in coding: Difference between revisions
Jump to navigation
Jump to search
m
→Prompt for Generate Unit Tests
mNo edit summary |
|||
| Line 11: | Line 11: | ||
* Find Problems (or fix this) | * Find Problems (or fix this) | ||
== Prompt for Generate Unit Tests == | == Prompts for use cases == | ||
=== Prompt for refactor source code === | |||
Prompt | |||
<pre> | |||
refactor the code | |||
``` | |||
(place your source code here) | |||
``` | |||
</pre> | |||
=== Prompt for Generate Unit Tests === | |||
JetBrain 推出 [https://plugins.jetbrains.com/plugin/22282-ai-assistant AI Assistant 外掛]功能,目前付費客戶可以免費試用 7 天。它下的 prompt,供大家參考 | JetBrain 推出 [https://plugins.jetbrains.com/plugin/22282-ai-assistant AI Assistant 外掛]功能,目前付費客戶可以免費試用 7 天。它下的 prompt,供大家參考 | ||
=== 翻譯版 === | ==== 翻譯版 ==== | ||
<pre> | <pre> | ||
為 "XXXClass" 類別中的 "xxx" 方法撰寫 "XXXClassTest" 測試。 指南: | 為 "XXXClass" 類別中的 "xxx" 方法撰寫 "XXXClassTest" 測試。 指南: | ||
| Line 30: | Line 41: | ||
</pre> | </pre> | ||
=== 英文版 === | ==== 英文版 ==== | ||
<pre> | <pre> | ||
Write "XXXClassTest' tests for the | Write "XXXClassTest' tests for the | ||