Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set "Show Solution Changes" as default view option for Included Changes in VS2013 TFS

As the title says, in the view for Pending Changes, where VS lists changes in your version, Show All is selected by default. In VS2013 update 3, i had this set to Show Solution Changes by default.

I have to change this view to show only solution changes for every new check-in. I want the default to be Show Solution Changes.

enter image description here

like image 384
aludvigsen Avatar asked Mar 25 '15 13:03

aludvigsen


People also ask

How do I change the default view of a folder?

1)Open any folder and set its view to "Details" (which is the one you want, right?) 2)ON that same folder, click the tab "View" on the top, then "Options" at the far right and select "Change folder and search options". 3)On the windows "Folder options" that will show up, click the tab "View".

Are there any pending changes in Visual Studio 2012?

(in this graphic the answer is no there aren’t any pending changes – Visual Studio does give you glyphs in front of the files that have pending changes – but this visual cue can get lost in the noise of large solutions) Turns out finding these files and more importantly filtering on just these files is in Visual Studio 2012 is easy.

Can I set a default view as the default view?

Unless someone has ‘pinned’ a different view in your app as their personal default, they will see the default view that you specify as the app maker. You can set any of the public views as the default view for an entity.

How do I filter files in Visual Studio 2012?

Turns out finding these files and more importantly filtering on just these files is in Visual Studio 2012 is easy. Next to the “home” button in solution explorer is a new “Filter” button with those to options… Here is a screenshot with pending changes turned on….


2 Answers

As far as I tested, this default setting is controlled by the following registry entry. If the value of this registry entry is set as 1, then it should change the default behavior to filter by "Solution Changes".

"HKCU\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl"

Name: FilterPendingChanges REG_DWORD

Value: 1 = Show Solution Changes

Value: 0 = Show All

Since we are on this topic, if you want to change the default file listing to "List View" instead of the "Tree View", you should modify the below Registry entry:

"HKCU\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\PendingCheckins"

Name: ListLayout REG_DWORD

Value: 1 = TreeView

Value: 2 = ListView

like image 116
Isaiah4110 Avatar answered Oct 01 '22 10:10

Isaiah4110


I had the same issue with the default never "sticking" regardless of what I did in the UI / Registry.

I found the problem went away when I chose to ignore a bunch of changes it kept adding to the pending changes

These changes happened to be inside the solution's mapped folder (in the NuGet packages folder). These were ignored in my .tfignore file, but had got into TFS's targets before the tfignore file was added.

So guess some code in VS is overriding the user's choice / reg in such cases.

Solved by choosing to Ignore those changes.

Now it sticks ! Winning !

like image 44
MemeDeveloper Avatar answered Oct 01 '22 10:10

MemeDeveloper