Skip to content

Allow to save a list of opened editors in a group and switch between them #9498

Open

Description

  • VSCode Version: 1.3.1
  • OS Version: all

There are many times I have a set of open editors in the middle of working on something but need to stop and look at a completely different part of the project.

Currently, I can:

  1. Just open the new set of files I need, which clutters up the open editors
  2. Close my open editors and open the new set of files, which makes it easier to work on the second part but very difficult to get back to the previous state when I need to

It would be nice to be able to save a state of which editors and files are open to retrieve later so I could save the state, close everything, and switch to the new set of files, then easily restore the initial state when I'm finished.

This is my main use case for wanting to be able to open multiple windows. See #7330 #2686

Activity

  1. added
    feature-request
    on Jul 20, 2016
  2. changed the title [-]Feature Request - Save and restore open editors state[/-] [+]Allow to save a list of opened editors in a group and switch between them[/+] on Aug 5, 2016
  3. bpasero commented on Aug 5, 2016

    @bpasero
    Contributor

    Sounds much like "Working Sets" in Eclipse.

  4. epogue commented on Jun 3, 2017

    @epogue

    Benjamin Pasero (@bpasero) It's similar. The feature also exists in Nuclide (Facebook's Atom extension) and it is fairly nice for removing noise in monolithic apps when you're focused on just a portion of it (i.e. frontend vs backend).

  5. georgemarrows commented on Jul 14, 2017

    @georgemarrows

    This sounds like #13951. Seems there's an experimental extension available.

  6. added
    workbench-editors
    and removed on Nov 16, 2017
  7. removed this from the Backlog milestone on Nov 17, 2017
  8. prufrock123 commented on Jan 24, 2018

    @prufrock123

    Isidor Nikolic (@isidorn), Benjamin Pasero (@bpasero) - Pleeeease consider adding this?

    I saw it is closed for consideration for the next 6-12 months. But this feature would be so helpful.

    I wanted to comment on this on #13951, but it's been locked by vscodebot.

    :( :(

  9. tzontron commented on Oct 14, 2018

    @tzontron

    .sublime-workspace config represents the equivalent functionality in Sublime - saving opened tabs and their properties tied to a project (vs code workspace).

    .sublime-project is what vs code now has with the .code-workspace - a way to open previously saved folders in a workspace. Similar implementation as .sublime-workspace will be great - having 2 config files:

    • one containing opened folders in the workspace (.code-workspace)
    • one for the tabs and their properties for the same workspace (the missing part)

    Then by exporting the workspace you get both files generated. Importing them back should have the choice of restoring the workspace as a whole including both tabs and folders or only one of them.

  10. 16 remaining items

  11. reefhound commented on Oct 21, 2021

    @reefhound

    I use an extension called Working Sets.
    https://marketplace.visualstudio.com/items?itemName=bernardop.working-sets

    It's useful but is stored in AppData and uses full paths so it cannot easily be shared with other devs.

    I would like vsCode to simply remember the Open Editors per branch. When I work on a feature branch for routing I have my routing files open. When I work on a feature branch for auth I have my auth files open. Create New Branch could default to current open editors. It's easy to close all open editors if you want to start from scratch.

  12. moiz-sohail commented on Oct 27, 2021

    @moiz-sohail

    One more extension is Tab Groups - similar to Restore Editors, but supports multiple, named, tab groups.

    Thanks

  13. Vcoder89 commented on Feb 15, 2022

    @Vcoder89

    Keeping this alive, could really use a feature like this, definitely helps with context switching.

  14. meatnordrink commented on Mar 3, 2022

    @meatnordrink
  15. jnilla commented on Jul 4, 2022

    @jnilla

    This is called task-focused-interface, original idea (afaik) from Mik Kersten, creator of the mylyn project on eclipse ide. Is simply a brilliant idea but poorly promoted the name of the tool in eclipse is 'tasks' which gives you no clue what it is for apart from a todo list. The tools allows you to save 'contexts' (set of opened editors) and switch between them fast so there is less mental friction. Im exited to see this on vscode im even thinking to code this myself if needed

  16. Ben-CA commented on Aug 11, 2022

    @Ben-CA

    Would like to see this natively in VS Code as well.

  17. jnilla commented on Aug 11, 2022

    @jnilla
  18. djwashburn commented on Dec 22, 2022

    @djwashburn

    Agree this would be very useful natively. Choosing, adding, and learning a plugin is also a context switch, which I don't have time for atm.

  19. alexzhaohong commented on Jan 27, 2023

    @alexzhaohong

    See #35307 for a related issue with a slightly different trigger in that it depends on git branch.

    I do think a native implementation similar to the eclipse mylyn tasks tool would be sufficient for this ask.

  20. Smast3r commented on Dec 12, 2024

    @Smast3r

    If you know about any extension that solves this problem. list it below please

  21. nullaegy commented on Dec 12, 2024

    @nullaegy
  22. tekert commented on Dec 16, 2024

    @tekert

    Im the only wanting this but for opened windows?
    I usually work on 3 out of 6 rotating proyects (worksets), so i have 6 open windows (thank god they are remembered when reopening vscode), The problem is when the projects rotate because they are done for the moment, and then later you want them back, it's a pain to remember where these project are to reopen, and worse if on the same day you have to switch on 4 projects to another 4 and then back to another 2.
    Also, would be great if the icon would change color depending on the project type or some custom setting for that workspace, also more great if it would show an additional bar based on memory usage for that window.

  23. adamsiwiec1 commented on Jan 28, 2025

    @adamsiwiec1

    +1 here, this would be great for large monorepos. Currently I just run multiple windows.

    Something like this extension would be great:
    https://marketplace.visualstudio.com/items?itemName=rslfrkndmrky.rsl-vsc-focused-folder

    The one above treats it like a "Notepad" in vscode e.g. it doesn't work for this purpose really.

    I would be happy to contribute if anyone has a starting point for an extension.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestworkbench-editors

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions