====== File Management ====== CodeDB manages files in a SQLite database, giving you the power of a relational database combined with a full code editor. ===== Creating Files ===== === New File === Click the **+** button in the Explorer section header or press **⌘N**. Enter a file name with an appropriate extension. CodeDB automatically detects the language for syntax highlighting based on the extension: ^ Extension ^ Language ^ | .js | JavaScript | | .ts | TypeScript | | .py | Python | | .rs | Rust | | .go | Go | | .java | Java | | .swift | Swift | | .html | HTML | | .css | CSS | | .json | JSON | | .md | Markdown | | .sql | SQL | | .sh | Shell | | .csv | CSV | | .tsv | TSV | | .xml | XML | | .yaml / .yml | YAML | | .php | PHP | | .rb | Ruby | | .c / .cpp / .h | C/C++ | === Bulk Create (Range) === Click the **clipboard icon** (📋) to create multiple numbered files at once. For example, creating ''chapter_1.md'' through ''chapter_10.md''. === Bulk Create (List) === Click the **notepad icon** (📝) to create multiple files from a list of names, one per line. ===== Importing Files ===== === Import Individual Files === Click the **file icon** (📄) in the Explorer header. A file picker dialog lets you select one or more files to import. Supported file types include all code files, CSV, TSV, and plain text up to 50 MB. === Import Folder === Click the **folder icon** (📂) to import an entire directory. CodeDB recursively imports all supported files, preserving folder structure in the file tree. ===== File Tree ===== The sidebar Explorer shows all files organized by folder path. Click any file to open it in the editor. * **Folders** can be collapsed and expanded * **Right-click** a file for context menu options: Open, Rename, Add Tag, Add Property, Add Relation, Delete * **Right-click** a folder for: New File Here, Delete Folder * Files display language-specific icons in the tree ===== Editing Files ===== CodeDB uses the Monaco editor (the same editor that powers VS Code) for code editing. Features include: * Syntax highlighting * Line numbers * Auto-indentation * Bracket matching * Find and replace (⌘F) * Multiple cursor support * Minimap navigation Files are automatically saved to the database as you type. ===== Tabs ===== Open files appear as tabs above the editor. You can: * Click a tab to switch files * Close tabs individually * Multiple files can be open simultaneously