Local History helps us to track our local changes for the project and prevents it from accidental accidentally looses or modifications of the project even outside from the IDE. This tutorial will show how to use Local History to view and revert changes and use labels.
Note | ||
---|---|---|
| ||
Beware, Local History stores local changes for of your project files only for 5 days and . Generally it is aimed for development before you put your changes into VCS. |
...
Create Java project from scratch with name HistoryApp. We will show how to use Local History works on example of this project.
...
Now let's define public static main method, which outputs "Hello world!".
...
It seems now we have some changes, so we can check itthem. Use
span | ||
---|---|---|
| ||
Local History → Show History |
...
To put label use
span | ||
---|---|---|
| ||
Local History → Put Label |
Specify any name for your label. We will see how it looks in Local History later.
...
8. Show history for selection
Now let us see all the changes for selected code. Select the output statement and use
span | ||
---|---|---|
| ||
Local History → Show History for Selection |
...