Code review features

Use the review interface to find reviews, inspect changes, participate in discussions, monitor test results, and manage review activities throughout the review lifecycle.

The review interface is organized into several areas, each designed to help you review code, track feedback, and understand the current status of a review.

In this section:

Depending on your permissions and the review state, some actions and interface elements might not be available.

This documentation is for the default review page. The Classic view option will be removed in a future P4 Code Review release. The Classic view toggle switch is at the top of the review page, and you can read the 2021.2 documentation of Review display.

Reviews list

Use the Reviews page to find reviews, filter results, search for reviews, and track review activity.

To learn more, see Reviews list

Review page

The review page provides an overview of a review, including review details, participants, status information, and available review actions.

To learn more, see Review page.

Files and diffs

Use the Files view to inspect changed files, review diffs, compare review versions, and analyze code changes.

To learn more, see Files and diffs.

Comments, tasks, and checklists

Use comments, tasks, and checklists to collaborate with reviewers, track feedback, and monitor review requirements.

To learn more, see Comments, tasks, and checklists.

Tests

Use the Tests view to monitor automated test results and review test activity associated with a review.

To learn more, see Tests.

Keyboard shortcuts

P4 Code Review provides the following file control keyboard shortcuts:

Keyboard shortcut Usage

Alt + H

Opens the shortcut dialog that displays a list of all the keyboard shortcuts for P4 Code Review.

Shift + Alt + L

Toggles to open or close the file list. See File list.

Shift + Alt + S

Toggles to open or close the Information panel. See Information panel.

Alt + R

Marks a file as read

Alt + T

Opens file in a new tab.

Alt + N

Scrolls to the next file in the list while viewing a review.

Alt + P

Scrolls to the previous file in the list while viewing a review.

Shift + Alt + F

Toggles to expand the Diff view to full screen or collapse the Diff view.

Shift + Alt + E

Toggles to expand or collapse all files in a review.

Alt + L

Toggles to show diffs in-line or side-by-side.

Alt + W

Toggles to show or hide whitespace and tab characters for all text files in a review.

Alt + D

Toggles to show or hide whitespace diffs for all files in a review.

Alt + C

Toggles to show or hide all the inline file comments.

Shift + Alt + H Toggles to show or hide syntax highlighter for a given coding language. For a list of supported languages, see Supported syntax highlighting in the Review page.

N

Scrolls to the next difference while viewing Diffs.

P

Scrolls to the previous difference while viewing Diffs.

Ctrl + Enter Submits a comment or form. Enter a comment in the text area and then use Ctrl + Enter to submit the comment or form.

ESC

Closes the dialog while you are viewing a dialog.

Stops text entry while you are entering text into a text area.