Get it for macOS

Edit code and config files inside BB without leaving the thread. Save with the toolbar button or Cmd/Ctrl+S, and edits stay in the buffer until you save. If the file changed on disk since you loaded it, the save stops and asks whether to keep the disk version or write your draft. Find, folding, bracket matching and multiple selections work in every supported language. Files that are not UTF-8 text or are larger than 8 MB fall back to BB's own preview.


Overview

View source

What you get

Open a file in BB and edit it in a CodeMirror 6 editor. Save the buffer with the toolbar button or Cmd+S / Ctrl+S; edits stay unsaved in the buffer until you save.

If the file changed on disk since you loaded it, the save stops and asks whether to keep the disk version or write your draft. Undo restores the discarded draft and re-arms the conflict decision.

Find with Cmd+F / Ctrl+F, plus folding, bracket matching, multiple selections, rectangular selection, and indent on input.

Colors follow your active BB code theme, including light, dark, and custom palettes. Files that are not UTF-8 text or are larger than 8 MB open in BB's own preview.

How it works

The plugin registers a file opener for common code, configuration, and script extensions such as JavaScript, TypeScript, Python, Rust, Go, JSON, YAML, TOML, and SQL. When several openers claim the same extension, the first in slot order wins and an installed plugin wins over a bundled one. Change the opener per extension in Settings then File openers, or right-click a file link for Open with.

BB renders Markdown and HTML with its own Preview/Raw toggle, so those stay with BB unless you pick this editor through Open with. There is no language server, so go-to-definition, find-references, and type checking are not available.

Requirements

Install the plugin in BB 0.50 or later. The editor runs in the BB app and reads and writes files through BB's file APIs; it makes no outside network requests.

More from Miftahul Huda

More in File Viewers & Editors 43

Browse, open, preview, or edit files and document vaults.

View all
File ManagerManage the files on the machine bb runs on without a terminal: browse, upload, move, rename, extract and hand them to the agent. Opens as a sidebar page, as a tab beside a thread that can start in that thread's folder, and from a file link in a message. Double-click shows images, PDF, video, Markdown and code; Space looks inside zip, tar, 7z and rar archives without extracting them. Multi-gigabyte uploads resume after a dropped connection, and several files or a whole folder download as one zip. On a phone, selected rows get an Actions bar with the whole row menu. Access stays inside the home folder of the user bb runs as; tar, 7z and rar archives need tar and 7z on that machine.Foma699
FilesA VS Code-style file explorer and editor for the workspace behind a thread. Search in files finds a word across every file in the project: results are grouped by file with each hit highlighted, and clicking one opens the file on that line. It is smart case, with match-case, whole-word and regex toggles, and built for typing — file contents stay in memory between searches, so refining a query re-runs in tens of milliseconds, and a regex runs in its own worker so a runaway pattern cannot freeze BB. Around it: a file tree that shows dotfiles, editor tabs, a go-to-file palette (Cmd+P), find in the open file (Cmd+F), syntax highlighting in your BB code theme, and edit and save guarded so a change an agent made underneath you is never clobbered. Markdown files open rendered, with the source and the editor one click away. Two pickers choose the project and then its checkout or one of its worktrees; beside a thread it is pinned to that thread's worktree. Adds a `bb files` command so agents can browse and read the same workspace from the CLI, on whichever machine it lives.AbdElrahman Telb559