Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silly Visual Studio Pending Changes Question

I recently switched from a Java based project to a C#/.net project. I previously used IntelliJ which had the concept of change lists where you could group your pending changes together and check each group in individually.

I have two problems with the pending changes window in visual studio.

1) Every time I check anything in, visual studio checks the checkbox beside Every pending change in the list forcing me to uncheck each and every one of them so I don't accidentally check something in. This is extremely frustrating because there are several files that I need to keep changed to correctly run my code locally. Is there any way to change this default behavior to not check any pending changes on check-in?

2) Is there any way to group changes into lists as opposed one big bucket of changes? Again this becomes frustrating when I need to check something in, but I have to search through the files and check the pertinent changes. I understand that shelve sets exist using TFS, but that doesn't cut it for me, especially since I have several changed files that I need to keep altered in order to correctly deploy locally, and I rarely ever want to check in.

Thanks in advance!

like image 442
Bryan Avatar asked Sep 10 '09 18:09

Bryan


People also ask

How do I undo a pending change in Visual Studio?

In Solution Explorer, the Pending Changes Window, or Source Control Explorer, select one or more items, open their context menu and choose Undo or Undo 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.

How do I view pending changes in my workspace?

You can undock the Pending Changes page from the team explorer and open it in a new window. You can toggle between list and tree view from the actions menu. Almost every change that you make to the files on your dev machine is stored in your workspace as a pending change until you check it in:

Where does Visual Studio Store changes that I make?

Almost every change that you make to the files on your dev machine is stored in your workspace as a pending change until you check it in: If you are working in a local workspace, Visual Studio can detect changes that you make outside the system.

How do I view pending changes in Linux terminal?

Use the command prompt Status command : Display pending changes in the command prompt. Checkin command : View pending changes in the Check In dialog box. Undo command : Undo pending changes. Difference Command : See what you have changed in a file.


1 Answers

I have to manage lots of changes every day in Visual Studio, and I've got a few tips for you, but no silver bullet:

Use Ctrl+A to select all items and then press a checkbox to toggle the checkboxes for all items. This can be useful when performing changes to only a few items -- just uncheck everything, then make sure you have only the items checked that you'd like to update.

Use Ctrl+Click (then right-click) to 'Undo' selected changes. By default, the undo action will only apply to the selected items.

You might want to experiment with using multiple Workspaces -- and then filtering changes by workspace or by solution.

like image 57
Dan Esparza Avatar answered Oct 19 '22 12:10

Dan Esparza