Skip to content

Code Editor

Access and edit your app files in the browser

Switch to Code view using the Code Menu Item icon in the main menu.

In addition to Draftbit’s no-code and AI-powered development features, a full in-browser code editor is available for people with more technical experience. Depending on your plan, you can access your app’s codebase, add or edit files, and open the sandbox in a local editor.

Code Editor

#NameDescription
1File TreeA list of all the files and folders in your app’s codebase
2EditorA full in-browser code editor to edit your app files

You can browse the files and folders in your app project’s codebase from the File Tree. This includes advanced project files such as hidden folders when they are available in your app. From the File Tree you can explore files, add new files, update or delete existing files, and add files to AI Chat context so the agent can help with a specific file.

File Tree

IconActionDescription
Add Screen Add FileAdds a new file to the codebase
Add Screen Add FolderAdds a new folder to the codebase

You can open any of your project’s files in the provided code editor to make manual changes to the codebase yourself. The editor features TypeScript-aware autocomplete and hover info, ESLint-backed inline diagnostics, formatting, and search. This is very handy for more technical users who have experience with JavaScript and React Native, allowing you to make changes directly to the code when needed.

Code Editor

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 the offending location. Fix the error and try saving again. The agent and preview won’t see partially broken code.

Changes to files (and folders) that you make 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 on the Save Changes icon in the top bar of the Builder.

Save Changes

You can also discard any changes the specific file using the Revert file button at the top of the code editor.