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 current file/tab/editor #16927

Open
dfroze opened this Issue Dec 8, 2016 · 44 comments

Comments

Projects
None yet
@dfroze

dfroze commented Dec 8, 2016

  • VSCode Version: 1.7.2
  • OS Version: Linux Mint

I've looked a bit but couldn't find a solution. Is there a way to toggle maximize (full screen) only the current tab/file? Even if there is split editor, it shouldn't display it, only the current file/tab.

Thanks

@bpasero

This comment has been minimized.

Member

bpasero commented Dec 8, 2016

@dfroze there is a new "Zen Mode" coming up which is maybe what you want?
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders

@dfroze

This comment has been minimized.

dfroze commented Dec 9, 2016

Thank you @bpasero . I tried the insiders build:
Version 1.7.2
Commit 7ba55c5
Date 2016-11-21T22:14:18.217Z
Shell 1.3.8
Renderer 52.0.2743.82
Node 6.5.0

But couldn't find the zen mode (not in the menu bar, keyboard shortcuts conf or showCommands bar). And the full screen is the same as the release one.
Where can I find the nightly builds? Or where can I find the build you mentioned?

@bpasero

This comment has been minimized.

Member

bpasero commented Dec 9, 2016

@dfroze that is not the insiders build, it should be Version 1.8.0!

@alefragnani

This comment has been minimized.

alefragnani commented Dec 9, 2016

The Zen Mode will not maximize only the current file/tab but instead, the entire window with all groups/editors, which I prefer by the way 😄

Maybe a setting to accomplish what @dfroze is asking?

@LiTiang

This comment has been minimized.

LiTiang commented Mar 23, 2017

what's @dfroze talk about is called maximize-panes in Atom,

this is so important that Eclipse, Sublime Text . . . also have this feature

i could not have this functionality when dev 😨

see how it work by this

@danielrob

This comment has been minimized.

danielrob commented May 6, 2017

Yeah the problem with zen mode is when switching application tabs, you can't toggle onto the zen mode on mac. I find this makes the feature basically unusable. I want Zen mode without fullscreen.

@mauro3

This comment has been minimized.

mauro3 commented Aug 6, 2017

Yes, this would be great to have. One example when this would be useful: three editor panes open, then open the Settings. Now the Settings are displayed in a completely unusable way (on my screen at least).

Note, that this toggle and the zen mode toggle should operate independently.

@bpasero

This comment has been minimized.

Member

bpasero commented Sep 10, 2017

You can use this command to make the active editor maximum width and hide the side bar:

image

@PixelT

This comment has been minimized.

PixelT commented Sep 12, 2017

+1 for this issue:
Atom -> https://github.com/santip/maximize-panes
SublimeText -> https://github.com/jisaacks/MaxPane

@tnhu

This comment has been minimized.

tnhu commented Oct 12, 2017

@tiagoaquino

This comment has been minimized.

tiagoaquino commented Oct 14, 2017

+1

@rdlaner

This comment has been minimized.

rdlaner commented Oct 27, 2017

+1!

@etlds

This comment has been minimized.

etlds commented Oct 30, 2017

+1

@mclang

This comment has been minimized.

mclang commented Feb 13, 2018

This is currently also my main one missing feature in VS Code, since I learned using "maximize panel" in tmux with ctrl + <space> + z

@Rosseyn

This comment has been minimized.

Rosseyn commented Mar 6, 2018

@bpasero that's handy, but heavy-handed.. need to be able to restore layout afterwords.. do you know of a good way to at least un-maximize an editor group perhaps?

@bpasero

This comment has been minimized.

Member

bpasero commented Mar 6, 2018

@Rosseyn there is also:

image

@ashlinchak

This comment has been minimized.

ashlinchak commented Mar 20, 2018

+1

@Rosseyn

This comment has been minimized.

Rosseyn commented Mar 20, 2018

@neo-anderson

This comment has been minimized.

neo-anderson commented Mar 30, 2018

This is the main feature I'm missing in VS Code. In Atom, I can maximize the source markdown pane and then toggle between source and preview like it's a live wysiwyg preview. Scrolling stays in sync too.
In VSCode, I can't maximize the source pane. So, this doesn't work.

@utilityboy

This comment has been minimized.

utilityboy commented Mar 31, 2018

@bpasero, Maximize Editor Group + Even Editor Group Widths is a decent compromise as you suggested, with the caveat that it's not "togglable" since there's no context to latch onto. See: #24163. The result is you need to use different keystrokes to flip between the two. cc @Rosseyn

@neminovno

This comment has been minimized.

neminovno commented Apr 16, 2018

Maximize/restore by double click on file name in header would be great.

@TerraTech

This comment has been minimized.

TerraTech commented Jun 12, 2018

@neminovno @utilityboy As a relative newcomer to vscode from atom, I too was trying to figure out how to emulate atom's 'maximize-panes' behavior. One of the first things I tried was to double click the tabbed filename to see if that would work. Well it didn't, but from an intuition standpoint I believe that would be the best way to handle this needed feature/ability.

Using the command panel is all well in good, but for everyday usage behaviors like this (maximize/restore panel size) should be baked directly into the editor and in a clickable fashion.

@tbrunel

This comment has been minimized.

tbrunel commented Jun 13, 2018

Up?
Really need this feature 🙌

@sammathu

This comment has been minimized.

sammathu commented Jul 16, 2018

+1

@myfairsyer

This comment has been minimized.

myfairsyer commented Jul 17, 2018

IGNOREME:
I am commenting here so I can easily find this issue again in the future, since I can't do that by subscribing alone. Sorry for the noise.

@hui00

This comment has been minimized.

hui00 commented Jul 17, 2018

+1

@utilityboy

This comment has been minimized.

utilityboy commented Jul 17, 2018

This becomes even more important now that we have wonderful grid layouts and need to focus work on a particular file. Using the mechanism to maximize an editor group leaves with an oddly compressed layout.

@lijgame

This comment has been minimized.

lijgame commented Jul 18, 2018

This is a killer feature for me as well!

@TheNorthman

This comment has been minimized.

TheNorthman commented Jul 19, 2018

+1

@mliq

This comment has been minimized.

mliq commented Jul 20, 2018

This used to work for me just fine in VSCode using View: Maximize Editor Group and Hide Sidebar. On the latest versions, it does not: that command only works once when I trigger it, so I have to retrigger it if I change to a different editor group.

Just a few months ago this worked great, I was able to toggle on this command once and it would keep maximizing whichever editor I made active until I triggered Reset Editor Group Sizes.

I miss this feature! Did grid view screw it up?

@derekalvarado

This comment has been minimized.

derekalvarado commented Jul 20, 2018

I rarely ever worked with editors of even widths. Just not enough screen real estate. I loved that switching focus with Ctrl+1 Ctrl+2 Ctrl+3 would also maximize the selected editor. Now, those only give focus to the editor, without maximizing.

My workaround is to assign a keyboard shortcut to "Maximize Editor Group", but still kind of annoyed that I need more keystrokes to get the same behavior.

Perhaps a setting to "Maximize Editor Group On Focus"?

@misterbridge

This comment has been minimized.

misterbridge commented Jul 26, 2018

There's this one: https://marketplace.visualstudio.com/items?itemName=wonderful.maximize-panes
I'm not fully conviced as it kinda lags and completly hide other panes (not configurable) but it's a good start.

@Ridermansb

This comment has been minimized.

Ridermansb commented Aug 2, 2018

Where is the Even Editor Group Widths option?

I can't find it.

screen shot 2018-08-02 at 13 42 52

screen shot 2018-08-02 at 13 44 35

@zanza00

This comment has been minimized.

zanza00 commented Aug 14, 2018

Now is called Reset Editor Group Size

image

@Ridermansb

This comment has been minimized.

Ridermansb commented Aug 14, 2018

@zanza00 it's not the same feature!

I want auto resize editor when focus... Even Editor Group Widths and not reset the size

@sirius0xff

This comment has been minimized.

sirius0xff commented Sep 6, 2018

Especially useful when doing file comparison

@ziomio

This comment has been minimized.

ziomio commented Sep 28, 2018

I need this feature!

@oryandunn

This comment has been minimized.

oryandunn commented Oct 11, 2018

Another request for this feature. Miss it from Eclipse, Atom, etc. A double click of a tab should maximize that tab, and another double click should restore it back to previous layout. This should also work for any other pane, like the terminal pane.

@eddiewang

This comment has been minimized.

eddiewang commented Oct 12, 2018

Would really love to see this feature happen!

@makstaks

This comment has been minimized.

makstaks commented Oct 12, 2018

Example:
iTerm2
View > Maximize Active Pane

@utilityboy

This comment has been minimized.

utilityboy commented Oct 12, 2018

You can get fairly close to what iTerm offers with the following keybindings:

   {
        "key": "shift+cmd+enter",
        "command": "workbench.action.maximizeEditor",
    },
    {
        // note the additional `ctrl` here since we don't have a context to know if the editor is maximized
        "key": "ctrl+shift+cmd+enter",  
        "command": "workbench.action.evenEditorWidths",
    },
    {
        "key": "shift+cmd+enter",
        "command": "workbench.action.toggleMaximizedPanel",
        "when": "terminalFocus"
    },

In my opinion, the only thing missing here for the whole thing to hang together @bpasero is a command like: workbench.action.toggleMaximizedPanel for editors. If there were a toggle or a context added even, I think everybody would be satisfied. Linking this again for the newcomers to the conversation: #24163

@TerraTech

This comment has been minimized.

TerraTech commented Oct 13, 2018

@creal1976 I don't think robots have reached the level of sentience yet to be charged with harassment in a court of law. However they are trainable, and you can toss them a bone by unsubscribing from this thread for which they would happily fetch a billion times over without delay.

You are receiving this because you are subscribed to this thread.

@Argysh

This comment has been minimized.

Argysh commented Oct 24, 2018

Is there a way to specify the width Maximize Editor Group should maximize to?
I usually have two groups which I'd like to maximize just to my line width.

@utilityboy

This comment has been minimized.

utilityboy commented Oct 24, 2018

@Argysh, there is no way to do this. It's a maximize which in VS Code takes up about 95% of the main editor window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment