> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bricks.tools/llms.txt
> Use this file to discover all available pages before exploring further.

# Diff view

> Side-by-side git diff pane with live file watching

View your project's uncommitted changes in a side-by-side diff pane that updates in real-time as files change.

<Info>
  The diff view is only available for projects inside a Git repository.
</Info>

## Open the diff view

Open the [right panel](/ctor/reference/right-panel) and add the **Diff** tab from its **+** (New tab) menu. The tab shows all uncommitted changes from `git diff`, with a badge for the current number of added and deleted lines (`+` / `−`).

The **Diff** tab shares the right panel with the [preview](/ctor/reference/preview), [Controller](/controller), and DevTools tabs — only one is visible at a time. Switch between them from the tab bar or with **Cmd+1..9**.

## View modes

Use the toolbar at the top of the diff pane to switch between display options:

| Option         | Choices             | Description                            |
| -------------- | ------------------- | -------------------------------------- |
| **Layout**     | Split, Unified      | Side-by-side or single-column diff     |
| **Indicators** | Bars, Classic, None | How additions and deletions are marked |
| **Wrap**       | On / Off            | Wrap long lines                        |

## Per-file sections

Each changed file has a collapsible header showing the file name and line change stats. Click the header to expand or collapse that file's diff. Collapsed states are preserved when the diff refreshes.

## Live updates

The diff view watches your project files for changes and refreshes automatically. The **Diff** tab's badge updates in step, so the added and deleted counts always reflect the working tree. Click **Refresh** in the tab bar to reload on demand.

## Close the diff view

Click the **×** on the **Diff** tab in the right panel.
