getcursor / cursor

The AI Code Editor
https://cursor.com
25.28k stars 1.57k forks source link

[FR] Rules for AI store #1104

Open hynky1999 opened 11 months ago

hynky1999 commented 11 months ago

Is your feature request related to a problem? Please describe. I write in multiple languages a day and I use Rules for AI to enforce my coding style/doc format etc... The problem is that whenever I switch I have to copy-paste the rules from a text-file.

Describe the solution you'd like It would be awesome, you would introduce a mechanism for quick-switching between predefined Rules for AI.

MarArMar commented 11 months ago

I thought of that too, for different use cases :

I wanted to add types to functions,

So I added snippets to the chat, but then I had to write "type this code" every time

Other uses cases are like "make a type from this object" or "make a test for this" or "document this"

If users can create their own prompts & make like quick access buttons it would be huge

mick-net commented 8 months ago

would be nice if Cursor AI rules for AI can be overwriten with a .json file per project. Just like the settings.json in the .vscode folder. Each project might benefit from different AI rules (e.g. when using different stacks). Ideally the AI rules can also be predefined per filetype (python vs JS).

dgokcin commented 4 months ago

continue.dev is already doing this. I have played around with it for a few hours. They are using a '~/.continue/config.json' file to define custom commands. You can call them in the chat window and give it a context like a file or a git diff or something written in your terminal etc.

Would be really nice to see a similar feature in cursor.