KBAISE/ for lovable
Library
Docs

View and edit your project's code

about 3 minBuildingchecked 7d agoOfficial page
The short version

You can open the Code tab to inspect your app's files, reference exact lines in chat, or make manual edits. Editing code by hand does not use credits, but saving manual edits requires a paid plan.

Anyone who wants to inspect the code Lovable created, point the AI directly to specific files, or make manual adjustments.

Do this, in order

  1. 1

    Click the Code tab in the project toolbar to open the built-in file viewer.

    This reveals your project folder structure and file contents.

  2. 2

    Select a file or use the search bar to locate the exact text or component you want to inspect.

    Searching code allows you to track down specific features or view markdown files in preview mode.

  3. 3

    Hover over a line number and click the plus icon, or right-click a file and select 'Reference in chat'.

    This inserts a direct reference pill into your prompt chat so the AI knows the exact file and lines to modify.

  4. 4

    Click into the file to make manual changes and press Save or Cmd+S (Ctrl+S on Windows).

    On paid plans, your manual edits apply immediately and save to your project history without consuming AI credits.

Paste this into your project

@src/App.tsx Review this file and make sure all navigation links lead to the correct pages.

Words decoded

IDE
A program (like VS Code) that developers install on their computers to write and organize code.
Codebase
The complete collection of source code files that make up your entire software project.

Where people get stuck

  • On the Free plan, the code editor is read-only, meaning you can view and copy code but cannot save manual edits.
  • Lovable does not review or validate your manual code edits, so manual mistakes can break your app immediately.
  • The Save button is temporarily disabled while Lovable is actively working on a chat request.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.