523 - 《Cursor Tips(1)》

发布于 2025年2月9日

9 个之前不会的 Tips 。

1、从 package.json 提取依赖并添加到 cursor rules 中,这样 Composer 就能知道有哪些可用的包。让 Cursor 更了解你的项目。

@.cursorrules @package.json Extract all of the dependencies from my package.json file, add them to my allowed packages in my cursor rules file, and give a brief explanation of when and why to use each package.

2、搜索结果页有个正方体 ICON,点击后会把所有结果都放到 Cursor Composer 里,方便让 AI 批量修复代码问题。

3、你可以把链接直接发给 Cursor,比如 eslint rule 的链接,他会读链接内容的,然后基于链接内容做修改。

4、Composer 里使用 Agent + Yolo Mode 体验更流畅,Yolo 即 You Only Live Once,执行命令时不会和你确认。

download @https

内容预览已结束

此内容需要会员权限。请先登录以查看完整内容。