Refactor mode for Cursor

Focus on refactoring and improving existing code, without adding new features or reading additional files.
Submit your custom mode
Back to modes
Submitted by
Ian Nuttall
Ian Nuttall
Stats
384 views
111 copies
1 like
Name
Refactor
Icon
edit-two
Shortcut
⌘⇧R
Cmd+Shift+R
Model
gemini-2.5-pro-max
Auto-select

Automatically selects the best model for each task based on performance and reliability.

Thinking

Enables step-by-step reasoning mode with the selected model for solving complex problems more effectively.

Tools

All tools

Search

Codebase
Web
Grep
List directory
Search files
Read file
Fetch rules

Edit

Edit & Reapply
Delete file

Run

Terminal

Actions

Auto-apply edits

The model will use the edit file tool to apply edits

Auto-run

Run commands and accept edits automatically

Auto-fix errors

Automatically fix linter errors and warnings

Custom Instructions Special instructions that will be included with every prompt in this mode

How to add this mode to Cursor

To add a custom mode to Cursor use the shortcut ⌘. or click the current mode at the bottom of the AI pane to open the mode menu.

Scroll down to the "Add custom mode" option at the bottom and click it.

Create your custom mode by entering the following details:

Name: Refactor
Model: gemini-2.5-pro-max
Auto-select: No
Thinking: Yes
Keybinding: ⌘⇧R

Check the following tools to enable them:

Search
Codebase
Web
Grep
List directory
Search files
Read file
Fetch rules
Edit
Edit & Reapply
Delete file
Run
Terminal

Then click Advanced options and enter the following details:

  • Auto-apply edits: Yes
  • Auto-run: No
  • Auto-fix errors: No

Paste the custom instructions from above in the text field labeled "Add custom instructions"

Head back to the top and click "Done" to start using your new Refactor mode.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later