thu tran
thu tran

Reputation: 13

In Android Studio, can we store a history point?

it's like when you write code A, you markup this state, then you go on editing code A into code B (making lots of steps) and when you want to come back to state A, it's still available?

Upvotes: 1

Views: 8098

Answers (5)

in Android studio chipmunk go to: git-> vcs operations-> show history. You will find mentioned by BrentM built-in Local History feature of Android Studio

Upvotes: 0

Naveen Kumar M
Naveen Kumar M

Reputation: 7557

Right click the file which you want to revert and choose Local History and check the history of changes made to the file and revert back to whatever you needed.

Refer the image attached below

enter image description here

Upvotes: 4

sivi
sivi

Reputation: 11114

If you can't find local history on Android Studio try this:

  1. press on VCS menu once (you will not see it)
  2. press on VCS again you should see it at the top option.

At least this is how it's working now in mac (Android Studio ~2.2)

Upvotes: 0

ceph3us
ceph3us

Reputation: 7474

“Version Control System” (VCS)

subversion with Android studio

Upvotes: 2

BrentM
BrentM

Reputation: 5757

While the best method is using a revision control system, it is also possible to roll back changes using the built in Local History feature of Android Studio.

To revert to an older version of a file from within Android Studio just select Local History from the context menu for any text file in your project. This displays the history of edits for the given file and provides a differences view to compare versions and revert to an older version.

Upvotes: 1

Related Questions