Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight lines in Xcode that have been changed

Tags:

xcode

Is there a way to get Xcode to highlight or mark the lines in a file that have been changed? Something like what it does for search results or warnings and errors would be great.

like image 695
David Potter Avatar asked Nov 01 '12 19:11

David Potter


1 Answers

Click on "Show the version editor" in the toolbar of Xcode. This will show you a side by side view of your current version of the file compared to the file as it was with your previous commit (I am assuming you are using git).

Or: View - >Version Editor -> Show Version Editor (Shift+Option/Alt+CMD+Enter)

like image 85
Joride Avatar answered Oct 13 '22 07:10

Joride