Skip to content
BhaiCode Docs
BhaiCode Docs

In-Browser Code Editor

Monaco-powered code editor, multi-tab navigation, and AST-safe modifications in Cloud Studio.

Cloud Studio includes a full-featured in-browser code editor powered by Monaco (the engine behind VS Code).


Editor Capabilities

  • Syntax Highlighting & IntelliSense: Full TypeScript, TSX, JSX, CSS, Tailwind v4, JSON, and Markdown support.
  • Multi-Tab Navigation: Keep multiple components, utility files, and stylesheets open simultaneously.
  • Standard Shortcuts: Cmd + S / Ctrl + S to save, Cmd + P for quick file picker, Cmd + F for search/replace.

AST-Deterministic Code Modifications

When Bhai modifies existing files:

  • CST/AST Parsing: Edits are parsed via syntax trees rather than fragile regex string replacement, preventing broken brackets or duplicate imports.
  • Pre-Save Syntax Validation: The compiler validates syntax before updating the preview, ensuring your running app never breaks on incomplete edits.
Was this page helpful?