Skip to main content
How to Use Gemini to code
- Go to Gemini
- Select the latest and the greatest model. As of now, it is Gemini 2.5 Pro Experimental.
- Go to Cursor Directory Rules
- Select the rules you want to use.
- Copy the rules.
- Go back to Gemini
- Paste the rules in the input box.
- Click on the "Submit" button.
- Pin the chat for quick access.
- Start coding by asking Gemini to write code for you.
- Example: "Write a Python function to calculate the factorial of a number."
- Gemini will generate the code for you.