In Visual Studio code, when comparing two files (eg in GitLens, or just a direct compare), is there a way to change the comparison split from vertical to horizontal? (so the lines still scroll together, but lines are longer, and less of them on the screen...)
This cannot be done for diff editors. The best you can do on diffs is the setting: Diff Editor: Render Side By Side
switch to inline
.
There is an issue on the backlog you can upvote:
See git diff of two files in horizontal layout.
For other types of file splits:
View/Editor Layout/Flip Layout will toggle between horizontal and vertical splitting.
Or Shift+Alt+0 (that is a zero) will do the same - that command is workbench.action.toggleEditorGroupLayout
if you want to rebind it to something else.
You can permanently change the upper right split icon to horizontal if that is what you want with this setting:
Workbench › Editor: Open Side By Side Direction
Controls the default direction of editors that are opened side by side (e.g. from the explorer). By default, editors will open on the right hand side of the currently active one. If changed to
down
, the editors will open below the currently active one.
Apart from the other answers, you may also need to uncheck this:
Diff Editor: Use Inline View When Space Is Limited
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With