-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Allow for empty editor panes #2755
Comments
Currently not. |
Oh I beg you, let's allow it! Use cases:
Yes, I come from Sublime but that IMO has been one of the features that created the feeling of simplicity. The way you split your editor - it stays this way. |
I've recently switched from Sublime to VSCode, and it's the only missing feature that is bothering me on a daily basis. |
+1. Also currently when you open a new pane, it duplicates the file in the original pane. To work on a new file in a new pane, you have to close the duplicate file opened in the new pane, before opening a new file in the new pane. |
Is this something that could be added with an extension? |
This is really bothering me as well. |
+1 |
1 similar comment
+1 |
That and #16858 (comment) would be awesome. |
It'd be nice to have this functionality natively, but here's a temporary, hack-y and untested solution for the short term!
"macros": {
"splitPane": [
"workbench.action.splitEditor",
"workbench.action.files.newUntitledFile",
"workbench.action.moveEditorLeftInGroup",
"workbench.action.closeEditorsToTheRight"
]
}
[
{
"key": "cmd+alt+2",
"command": "macros.splitPane",
"when": "editorTextFocus"
}
] Now when you use the There might be a more efficient way to do this, but this was a quick test to see if it would work at all. |
@aaronbushnell It works, thanks |
Also a Sublime -> VSCode convert and trying to get used to it. A typical workflow for me is to:
Right now, the only way I know of to do this is to:
The most surprising thing about this is that |
Waiting on this to be fixed before I can switch to Code over Atom. |
As a dev floating between Sublime and Code, this is the biggest downfall of Code at the moment. In addition to the new pane's initial state being empty when triggered, multiple keyboard shortcuts should be allowed ( |
+1 |
2 similar comments
+1 |
+1 |
Curious if @bpasero could give us an update on this issue? |
@bpasero I'd be interested in taking a stab at this, if you think it's feasible. I just need to be pointed in the right direction. |
@willsoto thanks for your help but in this case I would stay away from a PR because this area will get a rewrite for the planned grid layout feature. I was planning to tackle this as part of the grid layout. |
@bpasero grid layout sounds exciting! Any public plans/details you could link us to? |
+1 |
@bpasero is there an ETA for the grid layout feature? |
@AndreasBackx yes, June. See #49599 (comment) |
@bpasero Thank you, looks great! I'm interested what the keybindings will be like? |
@ttbarnes for what action specifically? |
@bpasero EG splitting into 2/3 horizontal columns? |
@ttbarnes still the same keybinding as before. we support splitting of editors independent from this issue. |
@bpasero thank you very much for the update. What is the new behaviour when splitting a view? Currently when you split the view, it opens the current file twice which more often than not you never really need. If this remains the same, is there a possibility into making this configurable? |
@AndreasBackx with the new grid work it will show an empty editor group instead of opening an editor. |
@bpasero sweet, I'll check it out on the Insiders build once it's available and when I can find the time between my finals. Thank you once again for the PR! |
This landed as part of #14909. A setting While this feature will land into our insider builds only sometime next week (for a stable release end of June), we have custom insider builds for testing this feature now available for more people to try out: Note: In order to run these builds you will first have to close any running VSCode Insiders build. Feedback is very welcome, ideally as individual issues and not as comments here to reduce the number of notifications for people subscribed. Please ensure to first have looked for any existing issue with the workbench-grid label already: query |
Sorry this is basically a +1 comment but YESSSSS SO EXCITED! Thanks @bpasero ! |
this is so close to being so perfect, only thing left for me is to disallow closing of an already empty group using the close keyboard shortcut (command+W). If I want to close a group I want the only option to do so to be clicking the x in the upper right hand corner, or possibly a different shortcut. |
@that70schris easy, just add this to keybindings:
|
Thanks @bpasero! Maybe that should be documented more prominently in the grid editor layout docs themselves? Seems like something that more people would want to set... Or maybe it's even relevant enough to be default when |
awesome! @bpasero thanks! |
I close my tabs using middle click, and unfortunately it doesn't respect the I think @that70schris is correct and setting the Great feature, otherwise! This was the one thing missing from vscode for me |
Is there a way to configure VSCode, so that it always shows a fixed number of pane? Or keep the pane even when there is no open file.
Something like
The text was updated successfully, but these errors were encountered: