5 min readUpdated Aug 6, 2026Beginner
Custom Prompts
Learn about Custom Prompts in this comprehensive lesson.
You can define global rules for Cursor so it always writes code in your preferred style.
- Go to Settings > General > Rules for AI.
- Enter your coding standards.
- Alternatively, create a .cursorrules file in the root of your project.
Prompt
Always use TypeScript strict mode. Prefer functional components over classes. Use TailwindCSS for all styling. Never use default exports.