What is a .mdc file?

This is what I found when I asked cursor about it with @web

This is similar to how other specialized Markdown variants have their own extensions. For example, from the search results we can see:

  • .md or .markdown for standard Markdown files

  • .mdc for Cursor’s rule files

  • Other variants like RMarkdown have their own extensions too

The .mdc extension helps Cursor identify which files should be processed as rules, just like how .md helps systems identify regular Markdown files. It’s a way of telling Cursor “this is a rules file” rather than just a regular Markdown or YAML file.

[Source: Using the "project-rules" in 0.45.2]

#You might find this helpful.

2 Likes