Feature request for product/service
Cursor IDE
Describe the request
I’d love to see Cursor support context-sensitive rules based on the type of coding activity (e.g., styling, markup, logic), rather than being limited to file types.
Use case
When writing styles, I want Cursor to default to using CSS variables. Currently, I can only target this preference to file types like .css or .scss. However, when styles are written in other contexts (like inline styles in JSX/TSX or styled components), the rule doesn’t apply.
Suggestion
Enable Cursor rules to be defined based on coding contexts or activities — such as “when editing style blocks”, “when writing markup”, or “when inside a styled component” — regardless of the file extension. This would allow for more accurate and useful assistant behavior across modern, mixed-format codebases.
Would love to hear if this is already possible or on the roadmap.
Thanks for the great tool!