-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Aux window: Allow to control drag and drop operations out of the window for e.g. opening new windows #8171
Comments
@bpasero DND can be pretty great but how about starting from something more primitive? like right click on a tab and create a new window? right click on a folder in the explorer and create a new window? I imagine you can pass all the information you need through IPC (Inter-Process Communication) but first you need to have this infrastructure. |
Yes, all related scenarios. |
Okay, thanks. :) |
As far as IDE's go, this is a very important feature for me. "Split Editor" doesn't cut it because one screen is two small and stretching the entire VS Code app across multiple screens is rather messy (code getting cut in the gutter of screens etc.) I've been using the new instance method (Ctrl + Shift + N) and dragging windows into that - except it seems my settings and project context gets lost which makes it not a real a solution at the moment. I understand there may be window management limitations with Electron holding this back (I remember Atom having this problem too), but I feel it at least warrants a comment and hope that there is a still a push to resolve this. |
The work-around I discovered was to open a sub-directory first, like If you did implement this feature, I agree with @eyalsk that having an option on the right click menu of the tab to open in a new instance would be a lot more doable than detecting drag & drop outside the electron app. |
I have the same problem, and now dragging tab causes files to be copied, which is not what I want at all. |
Shameless bump - any plans on getting this added. I'd even be happy with a "right-click -> open tab in new window" item. For anyone looking to make this easier in the meantime, found an extension from @takkaO that adds this right-click option - works well enough: https://github.com/takkaO/VSCode-OpenWindowTabContext |
Thanks, it is an alternative way but not best. For example, when I use the official Extension Remote - SSH, these operations will create a new SSH connection, which produce new processing and need litlle time for connecting. And the development environment is initialized to default setting but not us currently used. |
This comment was marked as spam.
This comment was marked as spam.
Would love to see this! Especially since the behavior of copying a file to the desktop when you drag a tab out is not behavior I have seen in any other application which makes it extremely unintuitive. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
2023 please! |
A first version of this is pushed to insiders that allows to drag an editor tab or tab group out of the window to open into a floating window (leveraging the new floating window support). Please try it out and let me know how it goes. You can still drag and drop tabs between VS Code windows to move them, but dropping a tab anywhere else will cause a new window. This is behind a new setting You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
I have a question. When a tab is dragged to create a new window, is it using the same session as the previous window? I'm wondering if when I'm debugging a program, the breakpoint information can be shared between windows. The current "duplicate current workspace" doesn't seem to achieve this. |
@Seraphli yeah it should, give it a try in insiders! |
Btw happy for some help with Aux window: drag/drop tab onto desktop works but shows a "no drop" pointer |
This issue is for the user gesture of dragging a file or tab out of the window to have it open as separate window. This likely requires some changes in Electron to get working, since the target of the drag and drop operation is outside of the window.
For the request to open an editor in multiple windows easily, see #10121
The text was updated successfully, but these errors were encountered: