Is there any way I can show changes that I made since the last commit in the code editor?
Go to “VSC” -> “Git” -> “Branches”, select the master branch and choose “Compare with current”. A popup “Compare feature with master” shows up with all the differences between the two branches, commits to commits, files to files.
Go to file name in project then press control then select Compare File and select another file you wish to compare. Seperate window will open up showing differences by colour contrast.
In Android Studio, go to VCS > Enable Version Control Integration. This option won't be visible if it's integrated with any version control before. Then choose Git as the version control system.
Commit these changes to the new branch in Android Studio by right clicking on the project name, hovering over “Git” then selecting “Commit Directory…”. Enter a commit message then select the “Commit” button.
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.
If you are using subversion Git then :
VCS->Git->Compare with the Same Repository Version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With