From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Change tracking for code edits

Change tracking for code edits - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Change tracking for code edits

- Visual Studio contains a track changes feature, which monitors your code edits and provides visual feedback to indicate what has changed. This feature is important because it allows you to quickly determine what has changed in a code session. So you know what to save and whether you have saved the changes to your hard drive. I'll start by looking at how to enable the feature. It's in the text editor section, under general. This is the setting you want, track changes. So, enable that. You'll also need to have the selection margin enabled. The selection margin adds extra space to the left side of the code editor. The track changes feature uses this margin to indicate the changes in the code document. By default Visual Studio uses two colors, yellow and green to indicate the changes. Those are customizable in the environment area. Track changes, after save, is green. Track changes, before save, is yellow. And if you'd like to change to your own colors, use this section or the custom…

Contents