📄 中文摘要
在对Cursor的规则系统进行了一系列实验后,发现.cursorrules文件仍然可以使用,但已被新的.cursor/rules/*.mdc文件格式所取代。新的.mdc格式允许针对特定文件类型设置规则、在前言中添加元数据,并将规则组织成多个文件,而不是一个庞大的文件。如果项目中同时存在.cursorrules和.mdc文件,Cursor将优先使用.mdc文件。迁移到新格式的过程相对简单,通常只需十分钟左右。
📄 English Summary
Everything I've learned so far about .cursorrules after mass testing them
Experiments on Cursor's rule system revealed that while the .cursorrules file is still functional, it has been superseded by the newer .cursor/rules/*.mdc file format. The .mdc format allows for scoping rules to specific file types, adding metadata in the frontmatter, and organizing rules into separate files instead of a single large file. If both .cursorrules and .mdc files exist in a project, Cursor prioritizes the .mdc files. The migration process to the new format is relatively straightforward, typically taking around ten minutes.
Powered by Cloudflare Workers + Payload CMS + Claude 3.5
数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等