Highlight changes in code since last commit in Android Studio

17.9k views Asked by At

Is there any way I can show changes that I made since the last commit in the code editor?

4

There are 4 answers

0
Makoto On

Use the Version Control tab. Under Log, you can select the first two changes, and use CTRL + D or Command + D to produce a diff between the two.

Note that this approach works best with code under source control that's registered with Android Studio. If you're not using any source control, you can still get a partial history of changes by navigating to VCS > Local History > Show Local History and selecting the root directory in your project. Note that this is subject to the Local History log length, which is nominally limited to 1,000 entries.

0
Bob On

On the left side of IDE open "Project" bar and select "Changed Files"

enter image description here

0
smukamuka On

In the menu:

VCS -> Subversion -> Compare with lastest repository version

0
Mimu Saha Tishan On

If you are using subversion Git then :

VCS->Git->Compare with the Same Repository Version

enter image description here