Repository navigation
Description
I was thinking of being able to toggle the visibility of editor groups so that space can be freed up when you're focusing on windows in one group. This would be done in two ways:
1.) A minimize-maximize button next to the split editor and additional options buttons on the right of every editor ![]()
2.) Shortcut keys that could toggle visibility on and off, focusing on specific editor groups using the initial shortcut as the start of a chord, and then perhaps entering the nth number on the keyboard to refer to the specific editor group in sequence.
When the editor group is minimized, it could be stacked on the left like a pinned tab in chrome, perhaps in the next editor on its right or in a dedicated space (I think this is preferable), with a maximize icon and icon denoting which editor group it is. An example: if you have 4 editor groups open and you minimize the 2nd & 3rd, where would you stack them? In this case a dedicated between the sidebar and first editor group denoting its number in the sequence of overall editor groups.
Of course, you don't want this little space to take up too much space, so you could have an additional options button with a dropdown after a certain number of editor groups are closed.
P.S This is my first feature request, and I'm interested in attempting to implement it myself. Please let me know whether this is a feasible thing to pursue, or if I should perhaps look to build it as an extension.
Activity
vscodebot commentedon Oct 31, 2020
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
vscode-triage-bot commentedon Oct 31, 2020
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
stagefright5 commentedon Nov 30, 2020
I can think of few features that can be included in this:
Please feel free to modify or add your suggestions
vscode-triage-bot commentedon Dec 21, 2020
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
vscode-triage-bot commentedon Dec 24, 2020
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
brianblakely commentedon Jul 29, 2021
I'd like to pile on top of this request:
Peek a minimized editor group. Peek triggers could be the following:
The use-case is for referencing code/text related to one's current work, without permanently occupying a lot of screen space. I think of the minimized editor group as a "sidekick" to the non-minimized groups.
vscode-triage-bot commentedon Oct 5, 2021
We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding and happy coding!
a-pav commentedon Dec 29, 2022
Currently when you minimize an editor it still occupies too much space, and is distracting. Besides, using the slider and mouse to resize the editor back and forth is... frustrating. Creating and destroying editors is not an option either. The ability to toggle visibility of editors (with their states preserved) is a very much needed feature. I don't know if vscode supports this, but it would be even greater if we could make the editor visible by key press and hide it by key release.
jcole099 commentedon Jan 2, 2023
I made an AutoHotKey (AHK) script that opens and closes a second editor group with a single hotkey. The hotkey I'm using is Numpad0. Leaving this here incase anyone wants a quick solution to a similar issue that I have experienced. Here is the code:
;first keypress: splits tab 2 in group 1
;second keypress: closes group 2
;requirement is that the tab to be split is in the second position of editor group 1
toggle:=1 ;set variable
Numpad0::
toggle := !toggle ;invert variable
If (!toggle) {
send, ^1 ;select group 1
send, !2 ;select tab 2
send, ^\ ;split tab 2
send, ^1 ;select group 1
send, !1 ;select tab 1
}
else
{
send, ^2 ;select group 2
send, ^{F4} ;close window
}
Return
a-pav commentedon Jan 2, 2023
I think this issue is mostly about a feature that this extension tries to fulfill.
But I guess, ultimately, this cannot be done properly by an extension. For example, this extension doesn't keep the state of the editor group which it minimizes (i.e. what line number you were before minimizing the group, what editor was in the focus, etc.). Besides it seemed buggy in a few tries I had (I tried to minimize the second group but it minimized the first group too. And also restored the second group into the first group a few times.)
Basically in VSCode as we currently have it, you either have an opened editor group, or you don't. We like to have the option to hide or minimize groups on demand and not need to close them off completely.
a-pav commentedon Nov 5, 2023
Hola! This is now possible in
v1.84release and it's exactly how it should be!Maximize Editor Group
kingpatrickj commentedon May 5, 2024
This feature only allows for working within one group while all the rest are minimized. It's still missing the functionality of hiding only one group while other groups are left open. For example, I might be working in two files and need a third for reference. Being able to toggle the visibility of ONLY the reference group would mean I can still work in both working groups at the same time.
a-pav commentedon May 8, 2024
You're right. This feature currently works like the zoom feature of tmux, it only zooms into one single editor (or tmux' pane) while minimizing all the rest.
I might be wrong but I think the problem is that in vscode there is no concept as pane, as in dual pane file managers for example. In vscode, everything seems to be an editor or editor group, and when you split an editor to the right, you're actually creating a different, separate editor group, which is not the same as a pane attached to its parent editor group and being part of its layout.
profxavr commentedon Oct 2, 2024
I am also desperately hoping this feature gets added. My editor groupings are usually quite meaningful to me, and once I have a specific set of tabs open, I don't necessarily want to part with them. But sometimes you need to start an entirely new task thread, so you need an entirely new set of groups within vscode.
I think the current best solution is opening a new window, but that FEELS messier than just having, essentially, VSCode's own internal windowing with groups.