-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Allow to save a list of opened editors in a group and switch between them #9498
Comments
Sounds much like "Working Sets" in Eclipse. |
@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). |
This sounds like #13951. Seems there's an experimental extension available. |
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 @georgemarrows above looks like https://github.com/devtanc/vscode-tab-hero which didn't look like it went very far. |
.sublime-project is what vs code now has with the
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. |
I'm building VS Code plugin that will remember your whole "workspace" in VS. In short, everything is based on the “mental snapshots” concept as cornerstone idea. Mental snapshot include: – last opened files Every “mental snapshot” could be easily restored from plain JSON file. They are easily diffable and could be added to source control to share with entire team. ContextKeeper idea is about to take developer context to the pedestal next to the source code. You could check out how the big picture looks like at http://contextkeeper.io |
Any progress with this? I've been using Save All The Tabs for Visual Studio and having switched to VS Code I'm really missing this functionality. |
I would like to be able to save the current state of workspace (such as layout + open editors) by a branch or issue number I am working on. Currently, VSCode already saves everything and allows us to continue work after restart, so why could it not be saved and restored on demand by name? |
+1 I need this. I'd like to save also how editors/tabs are opened in different splits. |
I found this extension https://github.com/jsaulou/vscode-tasks-context which can create tasks and associate files relevant to those tasks. The best part is It stores the config file at |
i think workspace could resolve this question,create different workspace for every project. |
One more extension is Tab Groups - similar to Restore Editors, but supports multiple, named, tab groups. |
I need this, this will be a very useful feature. |
One more comment here to keep it alive! Restore the open files for each task (per git branch) would be awesome. Time saver. |
This feature keeps me from switching from Sublime Text 3 to VS Code. I have 20+ projects/workspaces in ST3 in which I have open files of several size (some have 32+ MiB) and I want to save some of my resources by not opening of these files in the background. |
Thanks that's exactly what I needed! 👍🏻 |
I, too, want to see a robust implementation since some of us need to open a bunch of different files every time we work on a project so being able to save the editors (and their position, etc) is quite the time-saver. |
I agree. This feature would be very useful, reducing clutter and freeing up more screen space by getting rid of tabs unrelated to the project at hand. |
I do look forward to this feature too! I just wonder if VSCode support this, and googling it, this issue comes up. Please considering it. |
Apologies if I missed this already being discussed, but one question I had is how does vscode currently "remember" editor group layouts when opening a workspace? Even if we ignore tabs within editor groups, it seems like all the extensions that try to implement some form of "editor layout saving" can't save the real layout because the window api only provides a list of texteditors, each of which only have an integer viewcolumn as a positional identifier (I'm guessing this is a legacy of the original column-based design before we had horizontal splits). But this makes it impossible to distinguish between e.g. 3 editor groups split among 2 columns, and the horizontal split being located in either the left or right column. In both cases, looping over vscode.windows.texteditors, the viewColumns will be [1,2,3]. As an aside (and maybe this is a known issue already), if one of those editor groups was just a terminal, it wouldn't even show up in the list of texteditors, and does get lost when vscode reloads, (though it seems like the editor group that should contain the terminal does appear, but then closes before the terminal actually loads). |
I use an extension called 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. |
Thanks |
Keeping this alive, could really use a feature like this, definitely helps with context switching. |
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 |
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 |
Would like to see this natively in VS Code as well. |
For anyone interested this extension works almost the same as the eclipse mylyn tool |
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. |
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. |
If you know about any extension that solves this problem. list it below please |
I've found this one, and using it for several months: |
Im the only wanting this but for opened windows? |
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:
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
The text was updated successfully, but these errors were encountered: