Red/Green code block in the chat too!

Cursor is perfect already, and it codes for me even though I don’t know how to code really.
The UX is already amazing, and I think you could:

  • extend the red/green color of the editor to the chat. Sometimes we have an answer that says "we are going to replace this code block. Here is the modified code :
    / Cursor spits my original code
    “Replace it by this code:”
    / Cursor spits new code.
    I don’t know if that’s just me but I’m not reading the entire answer at once, I read bit by bit. So here, I lost my time reading my original code block and thinkin there was a modif in it (because it wasn’t phrased very well in the chat, or maybe it’s just the translation), only to realize that it was my original code and the modified code is in the next block.

If you’d apply the same color logic in the chat, that would never happens (and it happens often, I find it difficult to navigate the chat because of that): the first original block of code would be in red, and the second bloc of code would be in green.
Since Cursor wants to repeat my code, that’s a nice feature, but I want to jump right at reading the new offered code. With this kind of color cue, I would never get lost in translation and always know which code is new and which code is just a reference to my original code :smiley:

Thank you so much for this amazing app!
Diane

2 Likes

Hi @dianedef ,

Good idea to have some clearer visualisation in the suggested code within the chat about what is new and what is exisiting code.

I often find myself looking through the suggested code to see what has changed - sometimes I can pick it out, as a comment has been added next to the modification or addition, but other times there is too much code to review and find the changes.

So most of the time I just click Apply, which then it shows the diffs in the Editor, which I can then approve or reject one at a time (from within the Editor interface).

It could be interesting to see if some sort of visualisation could be present within the chat suggestion itself.

Hopefully the devs will see this post and, if they can see the value in it, add it to their ‘to do’ list.

2 Likes

Exactly !
I takes a bit more time to apply everything, we could save time by seeing the diffs in the chat itself before.
Please upvote this feature request on the top left of the post so that they know we are ‘many’ (at least two for now xD) to request this :slight_smile:

1 Like

Thanks, I’ve logged it as a feature request. If you have any other ideas on how to improve the product, feel free to share them.

1 Like