Using the Annotation Feature
Go Up to Subversion Integration in the IDE
Go Up to Git Integration in the IDE
Annotation, also known as Blame, is available for the version control system by clicking the (Annotate) toolbar button on the History Manager. The Annotation feature gives the relative age of every line in the file. Each time you click , annotation information is generated, using as a base the revision that either is being viewed (in the Contents pane) or is selected in the Differences From: list (in the Diff pane).
When you initiate Annotate, the History Manager displays the revision numbers for the lines in the current file, in a wide gutter area on the left side of the window (the Annotation area). Each line in the Annotation area displays the revision number associated with the corresponding line in the file. In other words, the number in the gutter indicates the last time the line was changed, given as the revision number in which the change was checked into Subversion.
The version control data is static in the History Manager. That is, you need to click Annotate in order to refresh the annotation data when you either change the view or perform a diff operation on another revision of the file.
To view the annotation of a versioned file
- Open a file that is under the version control system (Subversion or Git). You can use File > Open or Project > Add to Project.
- Open the History Manager (click the History tab at the lower edge of the Code Editor window).
- On the Contents tab or the Differences tab of the History Manager, click (Annotate).
- Observe the Annotation area (the left-hand gutter of the window), in which the most recent revision number is displayed for each line in the file.
To view the annotation again using a different revision of the file
- In the upper pane of the History Manager, do either of the following:
- On the Contents tab, click another revision listed in the Revision content list.
- On the Differences tab, click another revision in the Differences From: pane.
- Click (Annotate).