Skip to content

IDE Integration

Astro Editor is built for writing, not coding, but sometimes you need to jump into a proper code editor — to tweak a component, fix a build, or edit something Astro Editor deliberately hides. Configure your editor once and Astro Editor can hand a file, a collection, or the whole project straight over to it.

Set your IDE Command in the General preferences ( Command + Comma Control + Comma Command + Comma ). This is the command Astro Editor runs to launch your editor. If your editor’s command-line launcher is on your PATH, the name alone is enough:

  • code for Visual Studio Code
  • cursor for Cursor
  • subl for Sublime Text
  • zed for Zed

Otherwise, give the full path to the executable (e.g. /usr/local/bin/nvim). A leading ~/ is expanded to your home directory.

Once a command is set, the “Open in IDE” features below become available. Until then, they stay hidden.

With an IDE configured, right-clicking a file in the sidebar adds an Open in IDE item that opens that file directly in your editor.

The command palette ( Command + P Control + P Command + P ) gains three commands when an IDE is configured:

CommandOpens
Open File in IDEThe file you’re currently editing
Open Collection in IDEThe folder for the current collection
Open Project in IDEThe entire project