You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to save a list of opened editors in a group and switch between them #9498
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:
Just open the new set of files I need, which clutters up the open editors
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
Reacted by vandalouze, Elliott Pogue, Dane Wilson, George Marrows, Matias Berrueta, Roy Tinker, Ben Creasy, keremispirli, Thomas Hickman, Sally Waters and 173 more
Reacted by David Meir-Levy, sgon00, Saman Shafigh, SToneX, Sergey Zyablitsky, wh1tecat, Nirmal Manoj, John Datserakis, Nick Stoler, Elliot Larson and 31 more
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
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).
Reacted by Prabakaran Santhanam and Christopher Campanale
.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.
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.
Reacted by participator, Haomin Shi and Jonas Mazza
Keeping this alive, could really use a feature like this, definitely helps with context switching.
Reacted by nickpapoutsis, Vlad Macovei, eldon-pas, Leandro Araújo, Kristin Berry, luke, Quino Terrasa, ColinStroud, Charles Buffington, adam siwiec and 1 more
Reacted by Stanislav Denisov, Ondrej Medek, Leandro Araújo, Pål Syvertsen Stakvik, participator, luke, Jonas Mazza, Maycon Mesquita, Alvin Cousins, Pierre de Lespinay and 3 more
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
Reacted by nickpapoutsis, Ondrej Medek, Devon Hillard, luke, Daniel Stern, Elliot Larson, Peter Lyons Kehl, ljuba-roofr and Charles Buffington
Reacted by Ondrej Medek, luke, Alex, ljuba-roofr and Charles Buffington
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.
Reacted by nickpapoutsis, João Saraiva and Vladislav Pyslaru
Activity
[-]Feature Request - Save and restore open editors state[/-][+]Allow to save a list of opened editors in a group and switch between them[/+]bpasero commentedon Aug 5, 2016
Sounds much like "Working Sets" in Eclipse.
epogue commentedon Jun 3, 2017
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).
georgemarrows commentedon Jul 14, 2017
This sounds like #13951. Seems there's an experimental extension available.
prufrock123 commentedon Jan 24, 2018
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.
:( :(
jcrben commentedon Mar 7, 2018
I noticed https://marketplace.visualstudio.com/items?itemName=eamodio.restore-editors which seems to work - haven't tested it much yet. the experimental extension mentioned by George Marrows (@georgemarrows) above looks like https://github.com/devtanc/vscode-tab-hero which didn't look like it went very far.
tzontron commentedon Oct 14, 2018
.sublime-workspaceconfig 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-workspacewill be great - having 2 config files:.code-workspace)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.
16 remaining items
reefhound commentedon Oct 21, 2021
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.
moiz-sohail commentedon Oct 27, 2021
Thanks
Vcoder89 commentedon Feb 15, 2022
Keeping this alive, could really use a feature like this, definitely helps with context switching.
meatnordrink commentedon Mar 3, 2022
I'd love to see this feature natively, but another extension that works well for this -
https://marketplace.visualstudio.com/items?itemName=suhay.vscode-editor-group-minimizer
jnilla commentedon Jul 4, 2022
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
Ben-CA commentedon Aug 11, 2022
Would like to see this natively in VS Code as well.
jnilla commentedon Aug 11, 2022
For anyone interested this extension works almost the same as the eclipse mylyn tool
https://marketplace.visualstudio.com/items?itemName=marlom.keep-context
djwashburn commentedon Dec 22, 2022
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.
alexzhaohong commentedon Jan 27, 2023
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.
Smast3r commentedon Dec 12, 2024
If you know about any extension that solves this problem. list it below please
nullaegy commentedon Dec 12, 2024
I've found this one, and using it for several months:
https://marketplace.visualstudio.com/items?itemName=ctf0.save-editors-layout
this is the best. :]
tekert commentedon Dec 16, 2024
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.
adamsiwiec1 commentedon Jan 28, 2025
+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.
ichait-bgl commentedon Jun 20, 2025
I find "Keep Context" works well:
https://github.com/marlomgirardi/vscode-keep-context
phu-huy commentedon May 23, 2026
I see that using bookmarks for files:
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
or 1 forder:
https://marketplace.visualstudio.com/items?itemName=rhalaly.scope-to-this
or many scattered folders:
https://marketplace.visualstudio.com/items?itemName=ViniciusJordao.focus-folder