
Cursor keeps ignoring your project's naming conventions. Here's why.
You've told Cursor your project uses camelCase. It uses snake_case anyway. You've explained that components go in src/components . It puts them in components/ . You've said no inline styles. There they are. This isn't random. It's a specific problem with how rules get loaded and how LLMs weight context. Why Cursor forgets Cursor loads .cursorrules at the start of a session. Those rules compete with everything else in context: the code it's looking at, the conversation history, and its own training on patterns from millions of GitHub repos. The more code in context, the less weight your rules get. A long conversation has the same effect. Your naming conventions are technically in there — they're just getting outweighed by statistical patterns from codebases that do things differently. What actually works State rules in the negative, not just the positive Instead of: Use camelCase for variable names. Use: Use camelCase for variable names. Never use snake_case or PascalCase for variables.
Continue reading on Dev.to Webdev
Opens in a new tab



