Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
iconfalse

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
classshortcut
Local History → Show History
action from the context menu on in the editor to show the local history of changes for the current file.

...

To put label use

span
classshortcut
Local History → Put Label
action from the context menu on in the editor.

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
classshortcut
Local History → Show History for Selection
.

...