Cursor reads a .cursorrules file in your project to learn how you want it to write code. Answer the questions below and this tool writes that file for you — then copy it or download it and drop it in your project root. Free, no account, everything runs in your browser.
Your .cursorrules file
# Click "Generate .cursorrules" to build your file.
How it works
Fill in the form: project type, language and framework, code style, testing and documentation rules, and the tone you want. Click Generate and the tool writes a Markdown .cursorrules file in the box above. Copy it to your clipboard or download it, then place it in your project's root folder next to your code — Cursor picks it up automatically. Nothing is uploaded; the file is generated in your browser.
Frequently asked questions
What is a .cursorrules file? A plain Markdown file named .cursorrules in your project root. Cursor (the AI code editor) reads it and follows your rules when writing or changing code.
Where do I put the file? In the top-level folder of your project, next to files like package.json or README.md. That is where Cursor looks for it.
Is this affiliated with Cursor? No. This is an independent free tool. Cursor is a product of Anysphere; this generator is not made by or endorsed by them.
Is anything uploaded? No. The file is generated entirely in your browser and nothing leaves your device.
Embed this tool · 嵌入这个工具
Add this tool to your own website — it links back to Free Tool Directory. / 把这个工具放到你自己的网站上。
WordPress 用户:官方插件正在审核中,通过后一键安装;现在先用下面的代码。WordPress plugin under review — use the code below for now.