79251369

Date: 2024-12-04 13:40:35
Score: 1.5
Natty:
Report link

In Visual Studio 2022 there are improved Git controls, so while looking at current file diff one can now select a range (e.g. select lines that include one or more changes) and revert them all at once using context menu item Git -> Revert Selected Range.

By default, there is no shortcut, but you can configure a specific keyboard shortcut for that menu item in "Tools -> Options -> Keyboard" settings.

Note: This is currently available only while in diff window, not in the general text editor.

enter image description here

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: broslav