Tim Partridge
Tim Partridge

Reputation: 3393

How to jump to a file in the Source Control Explorer in Visual Studio

I love the Solution Explorer > Right-click > "Open Containing Folder" feature of the PowerCommands extension for Visual Studio 2010. I want the equivalent of a "Jump to location in Source Control Explorer" feature. How can I find out the location in TFS of a given open file, or a file in the solution explorer (or a file in the solution navigator in you have the Productivity Power Tools extension)?

The best answer would be a couple of mouse clicks and no keyboard. Next best answer would be a hotkey mapping.

The only solution that I have found so far is to use the Productivity Power Tools extension which has the feature "Find in Source Control". A file in the results list can be right-clicked to "Open folder in Source Control Explorer". The drawbacks to this solution is that is takes many clicks, and the search results can match more than one file if files exist with the same name in different folders.

Upvotes: 18

Views: 9659

Answers (7)

Mahmood Dehghan
Mahmood Dehghan

Reputation: 8265

For Visual Studio 2022, use this one: Locate in TFS 2022

Upvotes: 0

ViRos
ViRos

Reputation: 11

For Visual Studio 2013 try lightweight extension TfsExt13

Upvotes: 1

cat5dev
cat5dev

Reputation: 1335

There is a stand-alone extension that you can download, called Locate in TFS, within Visual Studio.

"Locate in TFS" on TFS Gallery

"Locate in TFS" on GitHub

This also works on files that you "Exclude from source control", as many developers do with the web.config files.

psulek's post, above, mentions this as part of VSCommands, but I prefer the stand-alone extension.

Upvotes: 16

Vi_Ros
Vi_Ros

Reputation: 49

I know it's probably too late. See TfsExt extension for vs2010

Upvotes: 2

psulek
psulek

Reputation: 4428

Try Visual Studio extension VSCommands for Visual Studio 2012. It has feature called Locate in TFS. This will add new button to Solution Explorer Locate in TFS which opens active selected file/folder in TFS Source Control Explorer.

Upvotes: 13

ambidexterous
ambidexterous

Reputation: 863

Feature request has been raised with Visual Studio team. Read here

Upvotes: 5

granth
granth

Reputation: 8939

I'm not sure if it's possible, but it's a good suggestion.

These two examples show how to use the Visual Studio Extensibility APIs to access the TFS Source Control Explorer APIs.

Upvotes: 1

Related Questions