Agentfly

Editing

Start new files from a template

Editing · 1 min read

A brand new file already has the boring first lines in it - the doctype for a web page, the main function for a C program.

When you would want it

Nobody remembers the exact opening lines of every language, and looking them up is the least interesting part of starting something.

Where to find it

  • All Features → Start new files from a template
  • Turn on or off
  • Settings

What you get out of it

  • The least memorable lines of every language stop having to be remembered.
  • Boilerplate arrives with the cursor in the right place, so you start writing immediately.

How to use it, step by step

  1. Create a new file with a known extension - say index.html or main.c.
  2. The standard opening boilerplate is already there.
  3. Want it empty instead? One Ctrl+Z clears the template cleanly.

Why this beats the usual way

Snippet systems make you define or import templates before any exist. Shipping sensible ones per extension means the first file of every kind starts right.

Find it in Universal Search

Start new files from a template · Editing