Does frontmatter help with indexing?

Hi, I have a project with many markdown files, and I’m wondering if it’s worth adding frontmatter to the top of each file and if that will help codebase search to find more relevant files.

1 Like

not sure about how cursor indexes the codebase, but its helpful for the models to understand each file better if you add frontmatter

1 Like

Cursor mainly uses file content and embeddings for indexing (Cursor – Codebase Indexing) so frontmatter might not make a difference.

While frontmatter might help a bit with context, it’s probably not worth the effort of adding it to every file just for search purposes. The codebase search should work well with regular markdown content!