Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual studio Auto-selecting files in Pending Changes after checkin with TFS

I use the Pending Changes window in Visual Studio 2010 to manage my files and to checkin with TFS.

My problem is that I will often be working on something and have files checked out then go onto something else, and then something else etc.... I have a lot of files checked out at once.

When I do a checkin, even if its just 1 file visual studio automatically checks the checkbox next to all other files so I have to go through and uncheck the files I dont want for my next checkin.

Is there any way to turn this feature off?

Thanks

like image 388
Purplegoldfish Avatar asked Jun 17 '11 14:06

Purplegoldfish


People also ask

How do I get rid of pending changes in TFS?

Right-click on the file in the Pending Changes List, choose Undo. believe it or not I actually had this same exact problem. I also didn't have the files. I right-clicked "view pending changes" on the solution and it pulled up all of the pending changes to my deleted files.

How do I get rid of pending add in Visual Studio?

To undo a few of your pending changes To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change. In the Undo Pending Changes dialog box, make sure the changes you want to undo are selected, and then choose Undo Changes.

What is check in pending changes TFS?

you will see the option "Checkin Pending changes.." Show activity on this post. In the team explorer open up the source control tab, then right click on the route folder and select Check in Pending Changes. This will check in all the files over all the solutions/projects that you have underneath the root.

How do I view pending changes in Visual Studio?

On the View menu, click Other Windows, and then click Pending Changes. The Pending Changes window is displayed. In the Pending Changes window, right-click the element that you want to compare to another version, click Compare and then click, With Workspace Version or With Latest Version.


1 Answers

I don't think you can turn of this feature. To better control this behaviour you have a few options:

  1. Select the folder in which you have the files that you want to check-in and right-click for the menu and choose from there for Check-in pending changes. That will select only the files within the folder/subfolders or project that you selected from the solution explorer.

  2. You can use a trick to deselect all files marked for check-in in the pending changes window, by selecting one file, press CTRL-A and deselect a file.

Hope that these tips will give you a smoother check-in experience. Also take a note at the comment by Lars Truijens about not mixing changes. It will be very hard to separate these checkins at not break the build at some time.

like image 104
ChristiaanV Avatar answered Sep 24 '22 03:09

ChristiaanV