'How can I save opened tabs and tab groups in Visual Studio 2012?
I need to have different set of open tabs and tab groups for each of my tasks.
Import and export setting not helping me to do this, neither does this SO question that has been asked similarly but for windows/tools layout - i.e. NOT for the tabs/tab-groups.
How can I save and restore the saved set?
Solution 1:[1]
Late to the party here but it popped up pretty high in my google search for this kind of thing so I'll drop my find: Save All The Tabs.
Solution 2:[2]
One Marketplace Extension that works with Visual Studio 2013, 2015, 2017 and 2019 is the Workspace Manager.
One additional tip: after installing it and adding the toolbar, you might have to restart VS again until it fully works (see Q & A). At least I had to do so in VS 2019 (16.1.3).
Solution 3:[3]
You can save open documents and later reopen them as a group with the Favorite Documents extension.
Solution 4:[4]
Really late to the party but ContextKeeper plugin will do the job. Supports VS 2022/2019/2017/2015/2013.
It's an extension to quickly save and restore sets of document tabs and its metadata. The "session", similar to Vim's :mksession command, is defined as:
- last opened/favorites files
- documents (tabs with code) positions, state and order
- tabs groups (including horizontal/vertical orientation)
- remembers line&column for every opened tab
It also has a powerful git integration - automatically saves and restores context when switching between branches.
All contexts are saved to simple JSON files.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mushkov |
| Solution 2 | Dejan |
| Solution 3 | Sergey Vlasov |
| Solution 4 |
