Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

See git diff of two files in horizontal layout #26856

Open
nmaxcom opened this issue May 18, 2017 · 26 comments
Open

See git diff of two files in horizontal layout #26856

nmaxcom opened this issue May 18, 2017 · 26 comments
Assignees
Labels
diff-editor Diff editor issues feature-request Request for new features or functionality
Milestone

Comments

@nmaxcom
Copy link

nmaxcom commented May 18, 2017

I followed the thread of impementing horizontal window splitting, thank you for that.

I don't seem to be able to achieve the same effect with the git diff view:

image

Am I missing something? I know there's a toggle inline diff, but that's not the solution.

If it's not implemented I think it should be, for the same reasons.

@Tyriar Tyriar added git GIT issues feature-request Request for new features or functionality diff-editor Diff editor issues labels May 19, 2017
@joaomoreno joaomoreno removed diff-editor Diff editor issues feature-request Request for new features or functionality git GIT issues labels May 24, 2017
@joaomoreno joaomoreno assigned bpasero and unassigned joaomoreno May 24, 2017
@bpasero bpasero added feature-request Request for new features or functionality workbench labels May 24, 2017
@bpasero bpasero removed their assignment May 24, 2017
@bpasero
Copy link
Member

bpasero commented May 24, 2017

You can arrange multiple editors horizontally, but the diff is always vertical.

@bpasero bpasero added editor and removed workbench labels May 24, 2017
@rebornix rebornix added this to the Backlog milestone Jun 6, 2017
@rebornix rebornix added the diff-editor Diff editor issues label Jun 6, 2017
@alexdima alexdima removed the editor label Nov 23, 2017
@jez9999
Copy link

jez9999 commented Jul 17, 2018

Gah, I'm adding my vote of support for this issue. So many ways to split the editor windows now but the diff has to be vertical? This isn't ideal; code is more likely to be wide than long. Please add an option to have a horizontal split for diffs!

@nmaxcom
Copy link
Author

nmaxcom commented Dec 1, 2018

@bpasero alright, so as of now it's only vertical. Will horizontal code diff be available?

EDIT

Ok! I just saw it was added to the backlog!

VSCode is the best there is, thanks for the work! 👌

@braddialpad
Copy link

As someone who likes coding on a vertical monitor, it is very awkward to view diffs! Any updates on this issue?

@mbalc
Copy link

mbalc commented May 21, 2021

bumping this issue , it would be really useful for me as well since I'm trying to move my whole workflow to the vscode IDE on a vertically pivoted monitor and I'm forced right now to use the inline diff to commit stuff partially

it'd be really helpful if somebody could tell me if taking this as a task and contributing would make sense - as I'm not sure if:

  • there were any duplicate issues or pull requests to this,
  • just contributing quality code for that is enough to get a review and an approval

@chrisnevers
Copy link

any updates on this?

@diligent176
Copy link

I really want this too. A way to toggle "diff" orientation with a quick key sequence.

@kiprasmel
Copy link

not sure if this is native vscode or the gitlens extension, but in the very top right, click the 3 dots ... and toggle Inline View:

Screenshot 2022-01-07 at 19 33 49

@braddialpad
Copy link

not sure if this is native vscode or the gitlens extension, but in the very top right, click the 3 dots ... and toggle Inline View:

Screenshot 2022-01-07 at 19 33 49

Nice, that is a native vscode feature. Not exactly what we want but it's a pretty good alternative.

@macintacos
Copy link

@kiprasmel you're a wonderful human, thanks for pointing that out. I see it, and honestly I don't care where it comes from, as long as I have it 😅

@rkulla
Copy link

rkulla commented Feb 24, 2022

Please add this feature! It's pretty common and expected coming from other editors.

@forecastcity
Copy link

While "Inline View" is pretty helpful for observing the changes in a long line of code, split horizontal editors is required when editing a part of code while needing to view another part of changed code.

@rkulla
Copy link

rkulla commented Mar 1, 2022

Inline View does not show up in the ... for me but I can see horizontal split diffs if I add "diffEditor.renderSideBySide": false. This works but is not as convenient as if it were a keyboard shortcut or faster toggle (like how split editor is), since I don't want either one to be permanent diff view.

It should always quickly adjustable thing.

@istvandesign
Copy link

I have a vertical screen and I would like to add that I would love to have git diff in a horizontal layout.

As a cherry on top feature would be to detect if the editor is in a vertical orientation and automatically open diffs horizontally or only inline, but keep the side by side diff if the editor is on a horizontal orientation. Even switch the current view if the window is moved from a horizontal to a vertical display.

@mahmood-ysf
Copy link

+1 for this feature to be added.

Although I found it really helpful to use line wrapping with the current view, by pressing Alt + z on windows.

@ximon18
Copy link

ximon18 commented Aug 31, 2022

While "Inline view" is fine for some situations I find I'm still missing a horizontal layout equivalent of the current vertical side by side diff, as mentioned by others this allows one to make better use of screen real estate when dealing with wide code, e.g. I find myself closing VS code side bars just so I can see more of the diff'ed code even though I actually want the side bar open in order to select the next file to review (this came up in the context of using the GitHub Pull Request and Issues extension which shows the changed files in a side bar pane).

@laralove143
Copy link

I would love to see this as well!

@TheDunco
Copy link

TheDunco commented Sep 9, 2022

As a dual vertical monitor user I'd love this feature as well. For now I'm satiated toggling between the inline and split views with line wrapping though (thanks to all the suggestions and discussion above!)

@damonholden
Copy link

I'm a vertical monitor user. It would be really nice to see this implemented.

@fulsomenko
Copy link

Adding my vote in to this, vertical monitor user.

@SeryiBaran
Copy link

Nice, +1 "vote" from me

@tim-kan
Copy link

tim-kan commented Aug 29, 2023

+1

@stereoa
Copy link

stereoa commented Aug 31, 2023

VERTICAL MONITOR GANG

@hediet hediet self-assigned this Dec 12, 2023
@roachsinai
Copy link

not sure if this is native vscode or the gitlens extension, but in the very top right, click the 3 dots ... and toggle Inline View:

Screenshot 2022-01-07 at 19 33 49

But it's not exactly what we want.

@alonWang
Copy link

need this +1

@hediet
Copy link
Member

hediet commented Aug 19, 2024

Is this supported by other editors? If so, can you share screenshots?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff-editor Diff editor issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests