IntelliJ IDEA 2017.1 Help

Viewing Local History of Source Code

On this page:

Basics

Besides file history, you can track local changes for a class, its elements, or selected block of source code. his history shows only those changes that affect the selected element or code fragment.

Viewing local history of a class

To view local history of a class

  1. Select a class file in the project tool window, or right-click class name in the editor.
  2. On the main VCS menu, or on the context menu of the selection, chooseLocal History | Show History for Class.

To view local history of a method or field

  1. In the editor, place the caret at the name of the desired method or field.
  2. On the main VCS menu, or on the context menu of the selection, chooseLocal History | Show History for Method (Field).

Viewing local history of a source code block

To view local history of a source code block

  1. In the editor, select a fragment of source code.
  2. Do one of the following:
    • On the main VCS menu, or on the context menu of the selection, choose Local History | Show History for Selection.
    • Press Alt+Back Quote, and choose the desired command from the VCS Operations quick list.

See Also

Concepts:

Last modified: 18 July 2017