Fanda
Fanda

Reputation: 3786

Tracking changes in Visual Studio

Is it possible to set up Visual Studio (2010) for tracking changes (left color symbols) not from last file open state, but from source control commited state? This is how netbeans works and it is really great feature, especially reverting text block from editor by right click... Visual Studio default tracking mode is not much useful.

EDIT 1: Something like this way:

enter image description here

EDIT 2: Now it works with latest Git Source Control Provider (http://visualstudiogallery.msdn.microsoft.com/63a7e40d-4d71-4fbb-a23b-d262124b8f4c) extension. Good job, extension developers. Left bar is standard visual studio tracker, right bar is tracker tracking changes against last commit. See picture:

enter image description here

EDIT 3 (12/05/2015): Now I use standard VS git tools and for change tracking great Git Diff Margin extension. I use it with VS2013 and 2015 and it works very well. See:

enter image description here

Upvotes: 14

Views: 11045

Answers (3)

Daniel Escobedo
Daniel Escobedo

Reputation: 96

For people like me that skim straight to the answer -

OP (12/05/2015) - Now I use standard VS git tools and for change tracking great Git Diff Margin extension. I use it with VS2013 and 2015 and it works very well

Git Diff Margin

Works great for me as well!

Upvotes: 7

Adam Dymitruk
Adam Dymitruk

Reputation: 129744

There is no such facility in VS to do this. I rely on CTRL-Z to undo. If there are too many changes, you can do a git checkout -p -- . which will walk you through all the differences and apply the ones you need. The -p (or --patch) parameter is available on git reset, git add and git checkout.

That being said, one could write an add-in to VS to give you this view.

Also, I use CTRL+- and CTRL+SHIFT+- to move back and forth between my recent cursor positions.

Upvotes: 0

Noctis
Noctis

Reputation: 11783

Seems like if you have Visual Studio 2013, and you're working with GIT, it does work.

enter image description here

Also, you can see what happens in the Team Explorer tab.

enter image description here

Upvotes: 1

Related Questions