Nam G VU
Nam G VU

Reputation: 35434

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?

Upvotes: 52

Views: 22135

Answers (7)

Patrick from NDepend team
Patrick from NDepend team

Reputation: 13842

The menu Window proposes 4 sub-menus to Save, Apply, Manage and Reset the Visual Studio windows layout. You can use this feature both to switch back and forth between several monitors configurations and also to switch between various activities (code writing vs. testing vs. code review …). The hotkey Ctrl+Alt+Number N instantly switches to the Nth layout

enter image description here

Source

Upvotes: 0

Piotr Karczmarz
Piotr Karczmarz

Reputation: 92

Really late to the party but ContextKeeper plugin will do the job. Supports VS 2022/2019/2017/2015/2013. I'm the author.

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 and column for every opened tab
  • remembers breakpoints & bookmarks for every opened file

It also has a powerful git integration - automatically saves and restores context when switching between branches.

All contexts are saved to simple JSON files.

Upvotes: 4

vsync
vsync

Reputation: 130620

After going over the answers here, I simply ran a search in VSCODE extensions tab and found something which was working great for me: Tab Groups

After installing the extension you should have an extra icon in VSCODE sidebar which manages saves tabs sessions and the tiny button on the top (with a red arrow which I've painted to point to it) will save the current tabs group with your desired group name.

enter image description here

Upvotes: 0

CPHPython
CPHPython

Reputation: 13759

If you accidentally came here looking for a VS Code solution, from the same author of Save All The Tabs (for Visual Studio) that MushKov shared in this answer:

  1. Restore Editors extension
  2. press Ctrl/Cmd+K and Ctrl/Cmd+E to access the editors/tab menu

Restore Editors VS Code extension by Eric Amodio

Upvotes: 5

Dejan
Dejan

Reputation: 10373

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).

Upvotes: 20

Mushkov
Mushkov

Reputation: 457

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.

Upvotes: 19

Sergey Vlasov
Sergey Vlasov

Reputation: 27940

You can save open documents and later reopen them as a group with the Favorite Documents extension.

Upvotes: 11

Related Questions