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

Support to split editors horizontally #1749

Closed
SetTrend opened this issue Jan 2, 2016 · 75 comments
Closed

Support to split editors horizontally #1749

SetTrend opened this issue Jan 2, 2016 · 75 comments
Assignees
Labels
feature-request Request for new features or functionality plan-item VS Code - planned item for upcoming ux User experience issues
Milestone

Comments

@SetTrend
Copy link

SetTrend commented Jan 2, 2016

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?

@mikewl
Copy link

mikewl commented Jan 3, 2016

+ 1

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

@felixfbecker
Copy link
Contributor

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

@bpasero bpasero changed the title Can Code split editor panels vertically? Support to split editors horizontally Jan 3, 2016
@bpasero bpasero added this to the Backlog milestone Jan 3, 2016
@bpasero bpasero added the feature-request Request for new features or functionality label Jan 3, 2016
@bpasero
Copy link
Member

bpasero commented Jan 3, 2016

Currently not supported, but a valid feature request.

@nchammas
Copy link

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.

@felixfbecker
Copy link
Contributor

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.

@paul-howard
Copy link

+1.

@mrblackus
Copy link

+1

2 similar comments
@tsjishan
Copy link

tsjishan commented Mar 9, 2016

+1

@opeologist
Copy link

+1

@felixfbecker
Copy link
Contributor

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

@paul-howard
Copy link

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

@nfloersch
Copy link

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.

@maedoc
Copy link

maedoc commented Mar 19, 2016

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.

@bpasero bpasero self-assigned this Mar 30, 2016
@mphaney
Copy link

mphaney commented Apr 20, 2016

Definitely +1 on this issue :-)

@jayrosen1576
Copy link

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.

@jeffgabhart
Copy link

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

@winuxue
Copy link

winuxue commented Jul 11, 2016

Horizontal split would be nice for developers comming from VS

@natdm
Copy link

natdm commented Jul 11, 2016

Where is this on the backlog?

@rebornix
Copy link
Member

rebornix commented Jul 22, 2016

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

@vviikk
Copy link

vviikk commented Nov 22, 2016

Would defo like the ability to have 4 panes. 3 seems a little to small a number consider I have so much real estate.

@Shahor
Copy link

Shahor commented Nov 29, 2016

I like to be able to split both vertically and horizontally and this is really missing here :(

Hopefully it will be implemented. This is the only major problem I have with vscode right now.

@nambrot
Copy link

nambrot commented Nov 30, 2016

Please provide your feedback at #14909 to centralize issues around the limitation of having to choose between vertical and horizontal splitting

@DHirani
Copy link

DHirani commented Jan 5, 2017

It is now a year and still no support for this feature which should have existed from the start, can we please get this added.

@Tyriar
Copy link
Member

Tyriar commented Jan 5, 2017

@Buddywork this feature was out in v1.7, you can toggle it via command palette or alt+shift+1. The command's name is workbench.action.toggleEditorGroupLayout.

@R3V07T
Copy link

R3V07T commented Jan 5, 2017 via email

@R3V07T
Copy link

R3V07T commented Jan 5, 2017 via email

@nilssanderson
Copy link

Just want to thank everyone that worked on this!

Great addition to a brilliant editor.

@btoo
Copy link

btoo commented Apr 4, 2017

Is there any way we could have both horizontally and vertically split panes at the same time?

ex. 2 panes on the top half and one on the bottom

@gold
Copy link

gold commented Apr 4, 2017 via email

@R3V07T
Copy link

R3V07T commented Apr 5, 2017 via email

@R3V07T
Copy link

R3V07T commented Apr 5, 2017 via email

@spring1975
Copy link

@felixfbecker Undocking windows is absolutely a miss in VSCode when coming VS. VSCode on a dual monitors (or more) system is fairly restrictive.

There's a workaround of stretching VSCode across both monitors and then splitting the editor horizontally, but that's not nearly as nice as an undocked editor window like what VS supports.

@RoyHP
Copy link

RoyHP commented May 28, 2017

Would love the ability to split both horizontally and vertically at the same time with a grid layout, much like Atom.io has (also Electron based). I won't be switching until this happens unfortunately.

@eduncan911
Copy link

eduncan911 commented May 29, 2017

Coming from old-school VIM and VS, Sublime and Atom w/VIM plugins... It's a serious limitation to not be able to:

:vs 
:vs 
:split

Translation to non-VIM gurus: it's an echo to the rants in this thread about not being able to split Vertically AND Horizontally - to form a grid-like editor, like mentioned in #14909.

Enough with the "design reviews" - just enable the features that all other editors have, and be done with it. If you have to change the infrastructure and groupings of tabs or whatever, make it a major version bump and tell everyone why. Done.

It's so frustrating that I tend to just use VS code for lighting editing, and drop to a terminal for hardcore grid editing.

On my 4k 30", or on my Macbook Pro 15" Retina - I use the grid layout exclusively.

Undocking windows would be a big plus too. But right now, I still have to use vim - so I have console open with tmux across my 3 three monitors for now - since VSCode doesn't support the 'grid layout' of horizontal and vertical splits at the same time.

@erraX
Copy link

erraX commented Jun 22, 2017

+1

1 similar comment
@aph-vsn
Copy link

aph-vsn commented Jul 7, 2017

+1

@aph-vsn
Copy link

aph-vsn commented Jul 7, 2017

Need to be able to split 4 plus editors

@yosefrow
Copy link

+1

@AshleyRodanHP
Copy link

It just reverted with the last update.
Last update i would cmd+1 and it would split it vertically and now when i do cmd+1 it splits it horizontally.

Id ont see any option in my setting to change this. Was looking for toggleEditorGroupLayout with no avail. :/

Current version is Version 1.14.0 (1.14.0)

@jorgebucaran
Copy link

⌘+Option+1 on macOS or Shift+Alt+1 on Windows.

2017-01-29 19 01 37

@brucejo75
Copy link

brucejo75 commented Sep 1, 2017

The usage description was confusing to me.

errr... I was banging on shift+alt+1 and then tried entering the toggle command in the command palette to no avail (no new window would split for me)... Luckily I toggled it an odd number of times so my next window split was then vertical. D'oh!!

To be EXACT:

  1. There are 2 modes for splitting the screen, horizontal or vertical. Horizontal (side by side) is default. To switch the mode use the shift+alt+1 on windows or ⌘+Option+1 on mac.
  2. There is a separate command to actually split the windows: ctrl+\ or cmd+\ for mac.

Once you have split windows on the screen you can toggle their modes (1) and the split will move. If you do not have any screens split then toggling will just toggle the mode for the next time you split your screen with (2).

Suggestion

If the screens are not split, toggling the mode (1)...shift+alt+1 will split the screen just like a screen split (2)... ctrl+\. I think this would make this feature much more discover-able.

@taivu
Copy link

taivu commented Sep 7, 2017

is there a preference setting in json that will allow me to split horizontal by default? i had to google search to remember to do cmd+option+1

@aadamsx
Copy link

aadamsx commented Sep 8, 2017

This issue seems related to #5911. I'll post the same comment here just in case:

Why has this feature not implemented?

This is a big, important, critical feature and the last one I can find that Atom has but VSCode does not.

Just implement split view (both horizonal/vertical at the same time) just as Atom -- they did a great job IMO.

This is the only reason I don't use VSCode over Atom, as I have 2 - 32" - 4K screens and can easily accomodate both vertical and horizonal "windows" or "views" -- it's a must have feature.

@wpowers
Copy link

wpowers commented Oct 4, 2017

@aadamsx

Why has this feature not implemented?

Agreed, this thread is approaching two years old and the requests in here are beginning to feel like begging. What has to happen to resolve this?

@stevencl
Copy link
Member

stevencl commented Oct 5, 2017

We implemented the ability to split horizontally or vertically and released that almost a year ago. Prior to this we did not support horizontal splits. At the time we discussed the approach we were taking and the reasons why we did not implement the ability to split both vertically and horizontally.

We are aware that some people would like more flexibility and we understand the motivation for this. But as I mentioned here: #5911 (comment), we have a large list of items that we need to get done such as multi root. Many of these items have significant impact throughout the rest of the product so we make sure to take our time to do them properly.

Supporting more flexible layouts than we support currently is a large piece of work since there is some significant UX work required to make sure we get it right then engineering work to implement it. However, we're focusing on getting multi root done just now (this is a large effort) so we will not be able to devote attention to this in the near future unfortunately.

@R3V07T
Copy link

R3V07T commented Nov 6, 2017

Take it off full screen thats why it dont work how you want it to

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality plan-item VS Code - planned item for upcoming ux User experience issues
Projects
None yet
Development

No branches or pull requests