Is there a way to show the current TFS workspace in Visual Studio?

I'm looking for a way to have the current TFS workspace displayed in Visual Studio.

It's visible when I open the Source Control Explorer (or Pending Changes), but I want it to be visible too when I'm editing code. So for example showing it in the toolbar, or in the window titlebar, or in the bottom status bar, doesn't matter as long as I can see it with a single glance.

Any tips?


There is a add on that shows this info, you can dock it somewhere :

http://visualstudiogallery.msdn.microsoft.com/384a4952-6b6f-4391-bc59-1b2bd38e1baf


You can use the "Rename Visual Studio Window Title" extension https://visualstudiogallery.msdn.microsoft.com/f3f23845-5b1e-4811-882f-60b7181fa6d6 and use the [workspaceName] attribute. Hope it helps.


There are a couple of options to do this without an additional plugin.

  • Use the Properties view

  • Select the solution, a project, or any file in Solution Explorer
  • Press F4 to go to the Properties view. The full path to your solution will be shown.
  • Note that right-clicking the solution or project and selecting Properties (Alt-Enter) will take you to the Properties Pages which doesn't have the information you want.

  • Use the Source Control Explorer

  • Opening Source Control Explorer will show you the last accessed workspace. Most of the time, this will be the workspace for the solution you are working on. However, if you have had two Visual Studio sessions open for different workspaces, I have seen the first VS session switch to the workspace of the other VS session.

  • Use the Pending Changes view

  • Pending Changes will show the workspace just under the header for the view.
  • You can get to Pending Changes through:
  • Team Explorer => Pending Changes
  • View => Other Windows => Pending Changes

  • Hover the mouse over an open file, the tooltip will show the full path to the file.

  • 链接地址: http://www.djcxy.com/p/57650.html

    上一篇: 我应该如何格式化R mlogit软件包的数据?

    下一篇: 有没有办法在Visual Studio中显示当前的TFS工作区?