GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing docs.draftbit.com — Code Editor | Draftbit Docs Code EditorBrowse, search, and edit your app's files in the browser
The Code Editor gives you your app’s full codebase in the browser. You can browse and search every file, edit code yourself, upload images and fonts, and hand a piece of code to the agent when you want help with it. It’s handy when you know exactly what to change and typing it is faster than describing it. LayoutSection titled “Layout”The Code Editor has three areas:
The agent panel is on the right, so you can chat with the agent while you work on code. You can pin the Files panel and the agent panel open, or collapse them to the side of the screen. On a phone, switch between Files, Code, Preview, and Agent with the tabs at the bottom. The Files panel shows your app’s folders first, then files, in alphabetical order. A colored dot next to a file shows that it has changes you haven’t saved yet. Search filesSection titled “Search files”Type in the search box at the top of the Files panel. The two buttons next to it choose what you search:
Show hidden filesSection titled “Show hidden files”Files and folders whose names start with a dot, such as Add files and foldersSection titled “Add files and folders”Select the + button (Add new) in the Files panel header to create something new:
To create something inside a specific folder, right-click the folder (or open its ⋮ menu) and choose New file, New directory, or New screen. API Backend apps show New route instead, CMS apps show New collection, and Supabase Backend apps don’t have this option. Manage filesSection titled “Manage files”Right-click a file or folder, or open its ⋮ menu, to see these actions:
Duplicate and Download appear for files only. Right-click an empty area of the Files panel to create or upload at the top level of your app. Upload filesSection titled “Upload files”Choose Upload files from a folder’s menu, then add your files. The upload dialog lists the rules:
For media you want to load from a URL, such as large images or videos, use Project Assets instead. EditorSection titled “Editor”Select a file to open it in the editor. The editor has TypeScript-aware autocomplete and hover info, inline errors (hover a red underline to see the details), formatting, and search. The editor’s header shows the file name and type, plus these controls:
Add code to a chatSection titled “Add code to a chat”Select some code, then right-click it:
Find code from the previewSection titled “Find code from the preview”Hold ⌘ (Mac) or Ctrl (Windows) and hover over an element in the preview. The code that renders it is highlighted in the editor. Syntax validation on saveSection titled “Syntax validation on save”The editor checks each file for syntax errors before saving. If a file contains a syntax error, the save is blocked and the editor highlights where the error is. Fix it and save again, so the agent and the preview never see partly broken code. Keyboard shortcuts and tipsSection titled “Keyboard shortcuts and tips”Select the ? icon next to the file name to open Keyboard Shortcuts & Tips. On Windows, use Ctrl wherever you see ⌘.
The same dialog lists a few tips: right-click selected code to add it to a chat, start typing to see TypeScript suggestions, and hover a red underline to see the error. Saving changesSection titled “Saving changes”Changes you make to files and folders yourself are treated the same as when the AI Agent makes changes. You can discard or commit your changes in the Save menu by clicking the
You can also discard the changes to a single file using the To go back to an earlier saved version of your app, use Version History. | ||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |