bsivanov / ClearTrackedChanges

The source code of Clear Tracked Changes extension for Visual Studio.
https://marketplace.visualstudio.com/items?itemName=bsivanov.ClearTrackedChanges
GNU General Public License v3.0
7 stars 0 forks source link

Clear Tracked Changes

This is a Visual Studio extension that installs a single command named 'Clear Tracked Changes' in the Tools menu. When invoked, the command clears the tracked changes (the yellow, green and orange bars in the left part of the Visual Studio code editor) from all files.

After installing, you can map a shortcut of your choise to the command - it should be present in Tools -> Options -> Environment -> Keyboard named as Tools.ClearTrackedChanges.

Availability

The extension is available on the Visual Studio Marketplace here: Clear Tracked Changes.

Compatibility

The marketplace version currently supports Visual Studio 2022, 2019, and 2017.

The latest version supporting Visual Studio 2015 and below is v1.1.0. It is available in Releases, and could be manually installed using the .vsix file.

Building

To build the extension yourself, you need Visual Studio 2022 with 'Visual Studio extension development' workload installed.

History

The extenstion is creates as an exercise to answer this StackOverflow question: How to reset track changes in Visual Studio?.

It is more of a hack, as it just toggles the Visual Studio setting for tracking changes (Tools -> Options -> Text Editor -> Track Changes), relying that this would clear the tracked changes from the editor.