visual-studioide

Line-staging stopped working at Visual Studio


My Visual Studio 2022 stopped showing option to choose each line to stage. It used to do so, but recent updates changed that and I can't find how to renable that.

How can I get this working again?

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.6.2

From this Microsoft reference:

If you need to switch off this new feature, you can use CTRL+Q, type “preview” and open the preview features pane. Scroll to “Enable line-staging support” and toggle the checkbox.

In my case, see print below, this option is not shown.

Current preview features panel


Solution

  • Toggle the "Show Staging Controls" button in the top right of your diff viewer.