Cursor’s Apply allows you to quickly integrate a codeblock suggestion from the chat into your code.

How Apply Works

Apply is a specialized model we’ve developed specifically for rapid code application. It’s designed to efficiently handle large-scale code changes while maintaining precision and reliability.

The key advantage of Apply is its focused purpose - it doesn’t need to understand or generate code itself. Instead, it works in tandem with your chosen Cursor model, which handles the intelligent code generation. Apply then takes those changes and efficiently applies them across thousands of lines of code in seconds, making it perfect for large-scale refactoring and updates.

Apply Code Blocks

To apply a code block suggestion, you can press on the play button in the top right corner of each chat code block.

This will edit your file to incorporate the code produced by Chat. Since you can add the most context and have the most back-and-forth with the model in Chat, we recommend Chat + Apply for more complex AI-driven code changes.

Accept or Reject

Once you have applied a code block, you can go through the diffs and accept or reject the changes. You can also click on the “Accept” or “Reject” buttons in the top right corner of the chat code block.

Ctrl/⌘ Enter to accept, Ctrl/⌘ Backspace to reject.

Was this page helpful?