How to prefer using recent local conventions by specific contributors?

Problem

  • When generating code, cursor often draws upon conventions used by other users of the language.
  • Those conventions may be at odds with my team’s conventions in our repo.
  • My team’s conventions are sometimes in the process of changing, so there may be multiple conventions, but more recent changes better represent the new conventions.
  • Additionally, certain contributors might be setting a better example than others.

Desired outcome

  • When generating code, I would like cursor to more often follow the conventions of recent examples in my repo than from common conventions by language users at large.
  • Ideally, I’d like cursor to draw upon recent examples from particular contributors.

Do you have any suggestions for how I can better achieve this?

hi @bgold and welcome to Cursor Forum.

Could you explain what kind of conventions? AI is trained with lots of quality content that contain also best practices. You can provide your conventions as Cursor, User or Project rules however it is up to AI to process those and adherence may vary depending on how you phrase the conventions.

Why not use the language best practices?