Skip to content

File Management

The left sidebar is your primary interface for navigating between files and collections in your Astro project.

Use File > Open Project or the folder icon in the sidebar to select and open your Astro project directory. Astro Editor will automatically scan for content collections and display them in the sidebar.

The left sidebar listing the content collections found in an open Astro project
Astro Editor scans the project and lists its content collections in the sidebar.

Clicking on a collection name will show its files in the sidebar. Subdirectories are also shown and can be navigated as you’d expect.

The sidebar showing the markdown files inside a collection, with a subdirectory listed above them
Clicking a collection shows its files; any subdirectories appear above them.
A file entry in the sidebar showing its title, date, and MDX and draft badges
Each file shows its title, date, and any relevant badges.

The sidebar shows the following information for each file:

ItemDescription
TitleTaken from the title frontmatter field (or whatever title field is configured in the preferences). The filename is shown if none exists.
DatePublication date (or whatever pubDate field is configured in the preferences) if it exists.
MDX BadgeFor files of that type.
Draft BadgeFor files with draft: true (or whatever draft field is configured in the preferences).
FilenameIncluding the file extension.

Right-clicking a file in the left sidebar gives you the following options:

ActionDescription
RenameEdit the filename.
DuplicateCreate a duplicate of the file with a new name.
Reveal in FinderOpen the file’s location in your OS’s file explorer.
Copy PathCopy the absolute file path to the clipboard.
Open in IDEOpen the file in your configured IDE. Only shown when one is configured.
DeleteDelete the file.

When a collection is open, you can create a new file with Command + N Control + N Command + N or the “New File” button in the toolbar. If you’re in a subdirectory, the file is created there. If you’re at the collection root, the file is created at the root. The file will have default frontmatter values from your collection schema.