SharpLab icon indicating copy to clipboard operation
SharpLab copied to clipboard

RFE: diffing would be cool

Open daveyostcom opened this issue 3 years ago • 3 comments

It would be cool to be able to checkpoint and then later view a diff on each side of current vs last checkpoint.

daveyostcom avatar Feb 28 '23 00:02 daveyostcom

Thanks for the suggestion! Which mode does your suggestion refer to -- Decompilation (e.g. C#, IL) or Run?

ashmind avatar Mar 11 '23 21:03 ashmind

Decompiilation

daveyostcom avatar Mar 11 '23 22:03 daveyostcom

Just ran into this myself, and it would indeed be cool for learning the difference between stuff. In my case I wanted to check what the actual difference between record Foo(int Id) and record Foo { public int Id { get; init; } was (turns out less than I'd thought). Copied the results of each into a local diff tool, so not a problem, but would be really neat if it was built-in to the tool. Maybe could have two stacked editors on the left, and show a diff of some sort on the right?

Svish avatar Jul 01 '25 19:07 Svish