vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Support to split editors horizontally

Open SetTrend opened this issue 10 years ago • 75 comments

It's hard to read code having more than one editing panel opened when they are split horizontally:
code
Is it possible to have Code split editor panels vertically?

SetTrend avatar Jan 02 '16 23:01 SetTrend

+ 1

I use 2 on the left and one on the right in atom often and this is missed in VSCode.

mikewl avatar Jan 03 '16 09:01 mikewl

@SetTrend as a tip, if you're not on a 16:9 monitor, you can toggle the side bar with Ctrl+B

felixfbecker avatar Jan 03 '16 11:01 felixfbecker

Currently not supported, but a valid feature request.

bpasero avatar Jan 03 '16 12:01 bpasero

I often have VS Code on one half of the screen, and a terminal window on the other half. Splitting VS Code vertically makes the code windows too narrow. A horizontal split would work much better in this case.

nchammas avatar Jan 22 '16 20:01 nchammas

Imo it would also be nice to completely undock windows to put them on external monitors. Just the files, no toolbars - similar to how you can do it in Photoshop with panels.

felixfbecker avatar Jan 22 '16 20:01 felixfbecker

+1.

paul-howard avatar Feb 15 '16 06:02 paul-howard

+1

mrblackus avatar Feb 25 '16 10:02 mrblackus

+1

tsjishan avatar Mar 09 '16 09:03 tsjishan

+1

opeologist avatar Mar 14 '16 16:03 opeologist

Guys there is now a like button on GitHub, lets stop +1ing issues if we dont have anything else to say

felixfbecker avatar Mar 14 '16 19:03 felixfbecker

@felixfbecker Cool! But I had to pull of the desktop version of the site to see it. Doesn't work on mobile yet. :-1:

paul-howard avatar Mar 14 '16 23:03 paul-howard

Ideally we would not be restricted... I've enjoyed UltraEdit on Windows allowing me to position the editing panels in whatever split configuration I need... maybe 3 stacked on left, 1 tall panel on the right, or a 2x2 grid, or 1 wide panel across top with 2 half-wide panels on bottom.

Also, going from MDI to SDI layout to support putting panels on different screens seems like a nice addition. I'm not sure if I would use it right now, but I have done that in the past with UltraEdit as well.

As a note, Sublime is not particularly good at doing this stuff, but you can customize it more than VSCode.

nfloersch avatar Mar 16 '16 15:03 nfloersch

FWIW, coming from Vim and its infinite flexibility, I found VSCode's 3 vertical split limit vastly reduced cognitive load of splitting, switching and cleaning up. Where in Vim, I'd <c-w> ad naseum to get the 'perfect' set up for a particular coding problem and then not change it unless forced to, in VSCode, I found the <c-\>, <c-1> etc made for a much more fluid & adaptable layout, according to the particular context of what I'm working on. This, I think, is a hallmark of the ST/Atom/VSCode paradigm, simple fast & agile with reduced cognitive load.

Since it's blasphemous to argue against configurability, I just make a humble suggestion to leave the defaults as they are and allow he/she who wishes, to opt into the additional complexity.

maedoc avatar Mar 19 '16 13:03 maedoc

Definitely +1 on this issue :-)

mphaney avatar Apr 20 '16 16:04 mphaney

I'm so happy that tabs are finally going to make it into VSCode. Adding the horizontal split pane would be a huge benefit and, at least in my use case, complete all of the necessary features for the type of product development I do daily. I commented on split panes in the tabs discussion so I'll also include it here:

This allows you to have two files opened side by side at the top and one or two opened below them. While this is a not a critical feature, I do find myself missing this quite often while developing front end web apps & mobile apps. The reason is most of what I work on is MVC or derivations thereof so having a model, view, controller and some UI file (css, Js, etc) open at the same time is a huge benefit.

Thanks for all of your hard work. This is truly one of the greatest code editors on the market and it has been a pleasure to use.

jayrosen1576 avatar Apr 28 '16 13:04 jayrosen1576

Horizontal split would be nice for people who use portrait monitors.

jeffgabhart avatar May 20 '16 19:05 jeffgabhart

Horizontal split would be nice for developers comming from VS

luisca-dev avatar Jul 11 '16 20:07 luisca-dev

Where is this on the backlog?

natdm avatar Jul 11 '16 22:07 natdm

Vim allows users to split window both vertically (similar to our Editor Group) and horizontally, so I see the reason why people are looking forward to it.

However in Vim, Window is always inside Tab but our Tab is inside Editor Group (as I mentioned above, our Editor Group is like Vim's vertical Window). I'm not a fan of doing additional splitting in our Tab again as that will make the UI structure too complex (a horizontal Window inside a Tab inside a vertical Editor Group). Maybe we can just allow Editor Group be horizontal ? @bpasero

rebornix avatar Jul 22 '16 05:07 rebornix

Just out of curiosity, where can i check this issue priority in the backlog? I'm really looking forward to this :)

BTW, congrats on the great work :+1:

fjunqueira avatar Jul 29 '16 00:07 fjunqueira