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

Maximize Workbench Editor #196722

Open
benibenj opened this issue Oct 26, 2023 · 4 comments
Open

Maximize Workbench Editor #196722

benibenj opened this issue Oct 26, 2023 · 4 comments
Assignees
Labels
feature-request Request for new features or functionality layout General VS Code workbench layout issues workbench-editors Managing of editor widgets in workbench window
Milestone

Comments

@benibenj
Copy link
Contributor

benibenj commented Oct 26, 2023

We want to allow users to not only maximize an editor group, but also the editor itself across the workbench.
I suggest to add the following command which can be added to the double click action of editor tabs:

Toggle Maximize Editor (Naming still open)

Double clicking the first time:

  • Stores current state: visibility of Side Panels & Auxiliary Bar, ...
  • Maximizes Editor Group
  • Hides Side Panels & Auxiliary Bar

Double clicking the second time:

  • Unmaximize Editor Group
  • If the visibility of at least one panel/bar has been shown in the meantime:
    • Do not restore saved state
  • If all panels are still hidden
    • Restore the visibility of the panels that were initially visible
@benibenj benibenj added feature-request Request for new features or functionality workbench-editors Managing of editor widgets in workbench window layout General VS Code workbench layout issues labels Oct 26, 2023
@benibenj benibenj added this to the November 2023 milestone Oct 26, 2023
@benibenj benibenj self-assigned this Oct 26, 2023
@garretwilson
Copy link

garretwilson commented Oct 26, 2023

As discussed in #16927, one major point is that this should happen wherever the focus is. If we are in the terminal, hitting the accelerator key will maximize the terminal (like Ctrl+Shift+J does now in VS Code on Windows). If you're in the editor, it maximizes the editor (similar but not completely like what Ctrl+B does in VS Code to hide the sidebar). If I'm in the sidebar (e.g. the file tree), the same keystroke maximizes the sidebar.

To see how this works, simply install Eclipse. In that IDE you can hit Ctrl+M to maximize and minimize whatever has the focus, whether it's the editor, a view at the bottom, the project explorer on the side, etc. That's what we were wanting in #16927.

Importantly, I should hit the same keystroke to go back to exactly the same "unmaximized" setting I was before—in other words, it remembers the size of the terminal, the editors, the sidebar, etc.

@dandavison
Copy link

dandavison commented Oct 26, 2023

Importantly, I should hit the same keystroke to go back to exactly the same "unmaximized" setting I was before—in other words, it remembers the size of the terminal, the editors, the sidebar, etc.

I agree that accurately remembering the previous editor configuration (splits) is essential.

If this work involves changes that are generally in the direction of being able to save and restore previous editor configurations that would be fantastic. It's something emacs does really well.

@starball5
Copy link

Related question on Stack Overflow: In VS Code, how can I toggle maximization of the current workbench part / editor group? where I have written up a workaround using editor group maximization and zen mode. It supports Editor groups and Panels.

@a-pav
Copy link

a-pav commented Nov 5, 2023

That's what we were wanting in #16927.

While I like to have what you (and this issue) propose, too, I also have to say that I'm genuinely satisfied with what is introduced in v1.84, So I hope it won't go away as a result of this issue :)

Been making noise in #109771, didn't know of #16927 until today.

(Edit: I realized that both of these issues have been assigned to the same person, so I shouldn't be worried as much.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality layout General VS Code workbench layout issues workbench-editors Managing of editor widgets in workbench window
Projects
None yet
Development

No branches or pull requests

5 participants