Arnaud
Arnaud

Reputation: 3741

How to reset track changes in Visual Studio?

I am using Visual Studio and I really like the track changes feature:

After a while, the files I am currently editing are completely green. When it happens I want to clear all the marks.

I found three ways but they are not as simple as I would like:

Is there a magic shortcut ?

Upvotes: 24

Views: 5365

Answers (4)

Sergey Vlasov
Sergey Vlasov

Reputation: 27880

To reset changes only for the current document, you can use the Clear tracked changes command for Visual Commander.

Upvotes: 4

Arnaud
Arnaud

Reputation: 3741

I have been using VisualSVN for a while now. It links the Track changes feature to the modification since the last commit in subversion. For those using TortoiseSVN, it could be one of the most useful alternative. Basically, you don't need to track the changes manually: it is done automatically when you commit your files.

Upvotes: 1

Borislav Ivanov
Borislav Ivanov

Reputation: 5360

I have just published simple Visual Studio Extension named Clear Tracked Changes which does the job. Basically it toggles the TOOLS -> Options -> Text Editor -> Track Changes setting, which clears the tracked changes as a side effect.

Upvotes: 9

Jay Harris
Jay Harris

Reputation: 10055

There is no way to my knowledge to remove the green indicator. However, you can essentially disable the saved color entirely, leaving only the yellow unsaved marker or no marker at all.

Under Tools -> Options -> Fonts and Colors. Set 'Show Settings for' to 'Text Editor' Scroll down in Display Items for 'Track Changes after save'. Change this to whatever color you like.

Track Changes after save

If you want to disable it, set Item Background color to be the same color as Item Background for Plain Text.

I, too, don't want my entire sidebar to turn green. So, I use this to have the yellow indicator on the un-saved changes, and saving turns the entire column back to black.

Upvotes: 2

Related Questions