Skip to content
Documentation

Code View

Code View

See the source behind the UI and review exactly what changed.

Use Code View when you want to see the files behind a page or component. You can browse the project, search its files, and review changes with the visual context still nearby.

Code View combines a file explorer, editor tabs, project search, and source editor.

Code View keeps the file tree, selected source file, and project search together.

Preview App shows the running project with navigation, device controls, zoom, Comment, and Inspect.

Return to the running app when a source question depends on routes or providers.

Open the source

  1. Select a component or page.
  2. Choose View code or its source reference.
  3. Read the highlighted file and the nearby code.

The highlighted file is a starting point. A visual change may also involve a parent component, shared style, or route.

Find a file or text

Use the file explorer to browse folders. Use quick open to search by file name, component, or folder. Use project search to find text across the project.

On macOS, press ⌘P for quick open or ⌘⇧F for project search. On Windows and Linux, use Ctrl+P or Ctrl+Shift+F.

Ask for a change

You do not need to edit code yourself. Ask your connected assistant to explain the source or make a focused change. Any saved edit changes the real project, so make sure the correct project is open and review the result afterward.

Review the result

Before you keep a change:

  1. Check the changed files and diff.
  2. Confirm the requested behavior and relevant states.
  3. Return to the preview and check the affected screen sizes.
  4. Open Review Changes for the full before-and-after view.

Look for unrelated edits, missing states, or changes to shared components that you did not request.

When the preview looks stale

Wait for the preview to refresh, then reopen the page or component. If it still looks wrong, check Troubleshooting.

Next step

Use Make and Review Changes to connect a visual request to the assistant, source diff, and final review.