Skip to content

Copy/replace/add left <-> right in compare views #25887

Closed

Description

@Dominik-K

In the compare views, it would be nice to have

  • "Copy to left/right"
  • "Replace left (with right)/right (with left)"
  • "Add above/down left/right"

in all views, i.e. the side-by-side and the unified view (there with other text than "left/right").

Now, I need to select the text and copy-paste it. In the unified view, I even can't select the text from the compared file ("left" file in side-by-side view).

A nice UI would be the one as in Meld:
image

Related: #24390 (but only wanted for staging VCS diffs)
Blocked by: #4180 ?

Activity

  1. added
    feature-request
    diff-editor
    on May 4, 2017
  2. gulshan commented on Aug 11, 2017

    @gulshan

    Similar proposal by me following git merge inline actions- #30519

  3. elgrafico commented on Jan 8, 2018

    @elgrafico

    I miss that feature as well. Good old NetBeans has a a similar intuitive approach:

    diff_netbeans-8 2

    Only the right side can be edited though, but there's a "swap" button right above the diff to mitigate that ;-)

  4. otienoanyango commented on Jun 5, 2018

    @otienoanyango
  5. rkotenko commented on Jun 6, 2018

    @rkotenko
  6. bradkemper commented on Jul 3, 2018

    @bradkemper

    I was very surprised that this did not already exist in VS Code. BBEdit isn't perfect, but it does have that.

  7. seanchann commented on Jul 16, 2018

    @seanchann

    +1

  8. MaerF0x0 commented on Jul 24, 2018

    @MaerF0x0

    Super bonus points for allowing mapping to keys so i can create a vim-diff copy
    (eg: do takes the other (usually left) side's changes)

  9. sigmarising commented on Jul 25, 2018

    @sigmarising

    This is a really good feature which I am looking forward to.

    In most coding time, I need to diff and merge only two files. I just want to diff and merge and there is no need for me to use git diff for only two files.

    In present, I use the tool "diff & merge" from jet brains IDE. This is a really good sample plate to reference.

    I strongly suggest this feature provided in the future version of VSCode.

    The diff & merge feature in JetBrains IDE

  10. vbuyonje commented on Jul 26, 2018

    @vbuyonje

    Many of us awaiting why not write it

  11. gongiskhan commented on Jul 27, 2018

    @gongiskhan

    +1

  12. 188 remaining items

  13. hediet commented on Jun 14, 2022

    @hediet
    Member

    I'm just realizing now that #151826 only partially adresses this.

    Please create a new feature request if the feature-set not covered in that PR is important for you.

  14. AnrDaemon commented on Jun 14, 2022

    @AnrDaemon

    Please refer back to this issue so that interested parties could see and track it. (And avoid re-posting same request over and over again!)

  15. added
    verification-needed
    on Jun 28, 2022
  16. APerricone commented on Jul 8, 2022

    @APerricone

    I am touched, I saw arrows on compare! after only 5 years

  17. heartacker commented on Jul 8, 2022

    @heartacker
    Contributor

    I am touched, I saw arrows on compare! after only 5 years

    you have right arrow after 5 years but left[失望]

  18. RedWingBB commented on Jul 8, 2022

    @RedWingBB

    Sweet!
    How about taking this valuable change to the compare in VS 2022?

  19. tdegeus commented on Jul 20, 2022

    @tdegeus

    As far as I understand I can only merge to the right, not to the left? Is this in the pipeline?

  20. KamasamaK commented on Jul 20, 2022

    @KamasamaK

    As far as I understand I can only merge to the right, not to the left? Is this in the pipeline?

    See #153620

  21. tarekahf commented on Jul 20, 2022

    @tarekahf

    I'm very happy with this change. Now I can merge to the right and hopefully the left will come soon!

  22. liftconfig commented on Jul 20, 2022

    @liftconfig

    Anyone know if there is a keyboard shortcut for the new update from left to right functionality?

  23. locked and limited conversation to collaborators on Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

diff-editorfeature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions