问题
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.
回答1:
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
回答2:
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 !
来源:https://stackoverflow.com/questions/29256693/set-show-solution-changes-as-default-view-option-for-included-changes-in-vs201