penguin penguin - 2 months ago 13
Android Question

Android Studio shortcut to show difference of a class from within that class

Is there any keyboard shortcut in Android Studio to show difference of class file, as compared to last commit, from within that class.

Current I can see file difference from

VCS (Local Changes)
tab only by either selecting file and pressing
Ctrl + d
or from menu as shown in image. There is another way but it also involve number of mouse clicks.

enter image description here


There is no such a shortcut by default, you could always assign it yourself, but there is the operation you need

(you could search for any operation using another shortcut Cmnd + Shift + A) :

enter image description here

In order to assign a shortcut to the operation, you should go to Preferences -> Keymap -> search for 'Compare with the Same Repository Version' and assign a shortcut on it.