Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加'.cursorrules'文件来增强AI辅助效果 #2759

Open
yellowryan opened this issue Apr 5, 2025 · 0 comments
Open

增加'.cursorrules'文件来增强AI辅助效果 #2759

yellowryan opened this issue Apr 5, 2025 · 0 comments

Comments

@yellowryan
Copy link

通过在项目的根目录放置 .cursorrules 文件,我们可以在这个文件里提供更多用与 Cursor 编辑的上下问,比如可以指定以下几个预设:

  • 指定项目的技术栈
  • 设定开发规范
  • 设定测试规范
  • 引导AI的问题解决思路
  • 创建自定义指令
  • 提供性能优化方向
  • .......

这样的预设能显著提高 Curosr 生成代码的准确性和相关性,使其更好地符合项目需求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant