Hi Cursor team,
First of all, thank you for this amazing tool — it’s become an essential part of my workflow.
I’d like to suggest a feature that could save a lot of time for many developers using the AI editing features.
Currently, when I ask the AI to wrap an existing block of code inside an if
statement, the diff shows the original block as entirely deleted, and a new block (inside the if
) as entirely added. This makes it very hard to review the change, especially for longer code blocks — I have to manually compare them to make sure nothing inside was modified unexpectedly.
Suggested improvement:
Please adopt a smarter diff mechanism — like the one in Visual Studio’s Git integration — that highlights only the new if
statement as an addition, while treating the wrapped code block as unchanged. This way, the visual diff will clearly show that the only change was the if
, not the whole block.
This small change could save hours of review time for users like me, and make the AI assistant feel much more seamless.
Thanks a lot for considering!
Best regards,
[Yaakov]