-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Drag to split horizontally #142840
Comments
I really want this, as mentioned in #36700 (comment) |
Once you have set pinging @bpasero |
@gjsjohnmurray thanks, that's some useful information, but there are also cases where I want the quick vertical split, i.e. when comparing line by line in fullscreen mode when horizontal space is no issue. It really depends on the task and the screen real estate / window size. Also in VS I had quite some situations where I would have two files opened side by side (vertically split) and would drag down the horizontal split on one file to edit two places in one file while still looking for reference on the other opened file. I hope this feature will be implemented in the future, because it would make VS Code so much more flexible and great to work with. Really fell in love with this particular feature in VS. :) |
The functionality is there, but you cannot start the split by dragging, you need to use a command. |
@bpasero You are right, I found the command "View: Split Editor Down", so I can shortcut it at least, still would appreciate the drag mechanic for the smoothness. |
@martin-braun be sure to understand the difference between If you prefer having the extra group, notice that the related button can be alt-modified to work downwards instead of rightwards: |
Uff 10 days, but only 4 likes. I guess no smoothness for Visual Studio Code then. 🙄 |
The big brother Visual Studio has a very interesting small feature that had a huge impact on my QoL experience when building a WPF app recently, it's the ability to drag the top end to split the editor horizontally:
It's not just a smooth experience due to the drag mechanic, but it's also incredibly useful, because unless on regular splitting, you don't lose focus on the line of interest, since the splitting is smooth. It really made temporary working on two places in the same file more convenient, because as fast as it's split as fast it un-splits again.
The closest I came up with in VSCode was to first split the layout and then toggle the layout and I would end up with horizontally centered split. It feels a little bit clunky.
The text was updated successfully, but these errors were encountered: