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

Feature request: Allow empty editor e.g. don't close editor when last tab/file is closed #11262

Closed
trash opened this issue Aug 31, 2016 · 2 comments
Assignees

Comments

@trash
Copy link

trash commented Aug 31, 2016

  • VSCode Version: 1.4.0
  • OS Version: OSX 10.11.6

Steps to reproduce:

  1. Open a file
  2. Open 2 more editors to get three-panel view by hitting "cmd+"
  3. Close file in right editor

Expected: File in right editor closes but editor/panel stays expanded, retaining desired three-panel view.
Result: File closes but so does editor, so that only 2 editors in 2-panel view are left.

Request:

Allow empty editors/panels. If all tabs are closed for an editor it should stay open. (An option for this would be great i.e. workspace.allowEmptyEditors, workspace.dontCloseEmptyEditor or whatever.)

Context/User-Perspective:

tl;dr: Just because I closed the last tab for an editor doesn't mean I want the layout to change. I just don't want that file open anymore.

My reasoning for this preference is that I like to keep my workspace "clean" as it were. I like to focus on the code I'm currently working on and only really keep other files open as reference material. Visually speaking, I also like having the file I'm currently working on centered. Currently I have to keep adjusting the editor's widths depending on how many are open and which files I've closed. It'd be nice to just have a fixed 3 panel layout like what is possible in SublimeText.

Examples

The behavior I'm looking for can be seen in SublimeText:

Notice here the right tab-group has no files but is still there.
screen shot 2016-08-30 at 6 53 27 pm

And in this one I've closed all the files in the left tab group but it stays open. In VS Code this would cause the left editor to collapse and the middle editor to be the first.
screen shot 2016-08-30 at 6 53 35 pm

@bpasero
Copy link
Member

bpasero commented Aug 31, 2016

Thanks for reporting this issue. Please use the issue search next time to see if there is a duplicate already. In this case, the issue has already been reported.

@bpasero bpasero closed this as completed Aug 31, 2016
@trash
Copy link
Author

trash commented Aug 31, 2016

Reference to existing issue #2755

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants