'Xcode 13.2 - How to hide git changes in the code editor?

In the latest release of Xcode 13.2, there has been a new feature, which allows us to see both old new versions of a line. In my opinion, it's kind of difficult to navigate with this feature enabled. Does anyone know how to turn it off?



Solution 1:[1]

Icon in the top right with two arrows pointing in opposite directions

Try these arrow press, it will hide the past code.

Solution 2:[2]

Found it! There is an arrows icon at the top of the editor, which toggles this "code review" mode

Solution 3:[3]

or you can use this shortcut "Show Code Review" or "Hide Code Review"

shift + opt + cmd + return

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Smitop
Solution 2 Beaxhem
Solution 3 dimaskpz