📁 src/ ├── 📄 views/ │ ├── HomeView.swift │ └── DetailView.swift ├── 📄 models/ │ └── Item.swift └── 📄 App.swift

Code Browser

Navigate, read, and understand your generated source code.

< > { } [ ] //
Syntax highlighting Swift · JS · TS · HTML · CSS · JSON File tree ready

Code Browser

Navigate the generated file tree, read syntax-highlighted source code, and understand how your app is structured.

File tree navigation

After the AI builds your project, the Code Browser presents a complete file tree. The tree mirrors the actual project structure — folders for views, models, styles, and configuration files, all organized the way a developer would structure them.

Typical project structure

MyProject/
├── Sources/
│   ├── Views/
│   │   ├── ContentView.swift
│   │   ├── HomeView.swift
│   │   └── SettingsView.swift
│   ├── Models/
│   │   └── Item.swift
│   ├── ViewModels/
│   │   └── HomeViewModel.swift
│   └── App.swift
├── Resources/
│   └── Assets.xcassets
├── Package.swift
└── README.md

Syntax highlighting

The Code Browser renders source code with full syntax highlighting, making it easy to read and understand generated code at a glance.

🐦
Swift
Keywords, types, string interpolation, and SwiftUI views are all highlighted with distinct colors.
📜
JavaScript
Functions, variables, template literals, and JSX/TSX elements are highlighted correctly.
🔷
TypeScript
Type annotations, interfaces, generics, and imports are distinguished from regular JS.
🌐
HTML / CSS / JSON
Tags, attributes, selectors, properties, and structured data all get proper highlighting.

Editing capabilities

The Code Browser is primarily a read-only viewer, but you can interact with it in several ways:

Direct in-editor editing is not supported. All changes go through the AI Builder, which ensures consistency across files and prevents breaking changes.

How files are organized after generation

When the AI builds a project, it follows platform conventions:

The file organization is determined by the AI based on the project type and best practices for the target platform. You can ask the AI to reorganize files if you prefer a different structure.