Arrows to revert changes in side by side diff editor#151826
Arrows to revert changes in side by side diff editor#151826hediet merged 1 commit intomicrosoft:mainfrom
Conversation
|
Thanks a lot for the PR! Let's merge this and wait for feedback. |
|
The feature does not depend on git. Normal compare views like "Select for compare" from the explorer right click context menu should also contain these arrows. |
|
When it'll be released? |
|
I suggest you take Insiders build and check the functionality. It could be more easily adjusted when it's still hot. |
How I can do that? Can you please point me to the steps? |
|
@tarekahf You can install VS Code Insiders side-by-side with VS Code Stable. |
Thanks a lot. I'll give it a try when possible. Fir now, I want to know the planned release date. |
While it is great to see VScode getting this very basic functionality for merging diffs from git, @Mingpan is correct, this is not the only glaring lack of an ability to merge diffs. The compare tool needs these arrows, too. I can't believe I have to manually copy/paste diffs when comparing files in VScode. |
|
@hardyoyo As far as I understood Mingpang's answer to my question this feature is also available in the normal compare tool. |
|
@Sebi2020 Oh! That would be cool. I'm downloading the Insiders version now, and we will see. I'll report back if this is correct. |
|
An option to switch sides in the comparison menu, when two editable files are being compared, will be helpful in this regard also, IMHO. |

This PR fixes
Description
This PR adds left -> right arrows in the side-by-side diff editor. When an arrow is clicked, the corresponding change will be reverted on the right hand side editor.
Breakpoints can still exist in side-by-side editor as usual. Though a breakpoint cannot be set on a line that already has an arrow.
Screencast
Example with breakpoints:

If there's anything that needs to be improved / fixed in the code, please let me know, thanks!