> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.instabase.com/flow/custom-functions/text-editor/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.instabase.com/_mcp/server. # Using the text editor > Basic editing, templates, and debugging tools for working with files. The Text Editor helps you develop directly in the flow editor view, most commonly when defining the artifacts contained in modules, such as JSON schema files. ## Working in the text editor The editor supports standard file operations including save, open, and download. The editor supports the following file types: `.py`, `.json`, `.js`, `.ts`, and `.md`. There are various keyboard shortcuts to improve efficiency, listed under **View** > **Shortcuts**. You can customize the text editor based on your preferences: * *Light and dark modes* -- To enable dark mode, select **View** > **Dark mode**. * *Tab size* -- To configure tab size (default: 2), select **Settings** > **Tab Size**. ## Templates Code templates help you quickly create custom functions, also called user-defined functions (UDFs). To view templates, select **Insert** > **Templates**. Search by title, then copy and paste a template into the editor. To save editor contents or a selection as a template, select **File** > **Save as Template**. ## Debugging To write and test UDFs, open **Tools** > **Debug**. > Basic editing, templates, and debugging tools for working with files.