Create a new file in your project

Steps

  1. Go to the folder where the file belongs

    In Files, open that folder from Project files, or open any file that’s already in it. See Browse and search your project’s folders.

  2. Select New file

    Use the New file button at the top of the folder’s page. If you have a file open, use the + in the tab bar instead.

    Files showing a project folder, with the New file menu open. Highlighted: New file.Files showing a project folder, with the New file menu open. Highlighted: New file.
  3. Choose a type

    Choose Markdown file, JSON, Plain text, or Other file for anything else, such as a web page or a Python script.

  4. Check the name and place

    Type the full name in Filename, including the ending, such as notes.txt. It starts as Untitled with the type’s ending, such as Untitled.json, or empty for Other file. Location is set to Project folder, and Folder shows the folder you were in. Clear Folder to put the file at the top of the project.

    The New file dialog with Filename, Location set to Project folder, and Folder filled in with the current folder. Highlighted: Create file.The New file dialog with Filename, Location set to Project folder, and Folder filled in with the current folder. Highlighted: Create file.
  5. Select Create file

    The new file opens in a tab, ready for you to type.

Good to know

  • On Files home, with no folder or project file open, Markdown file creates a document instead of a project file. To make a Markdown project file at the top of your project, choose Other file and give it a name ending in .md. To learn how the two differ, see Find your way around Files.
  • New JSON files start with {}, an empty JSON object. Other new files start empty.
  • For a name ending in .md, you can set Location to Your documents to create a document instead.
  • The folder you type in Folder must already exist. Files can’t create folders.
  • Names can’t include these characters: \ / < > : " | ? *. They can be up to 180 characters long.
  • Enjoy never replaces an existing file when it creates one.
  • To create files on your phone, see Use Files on your iPhone.

If something goes wrong

“A file with this name already exists.”

There’s already a file with that name in the folder. Change Filename and select Create file again.

“The destination folder does not exist.”

Check the spelling in Folder, using / between folder names, such as src/components. Or clear it to create the file at the top of the project.

Create file is greyed out

The name is empty or uses a character that isn’t allowed. If New file itself is greyed out, you have view-only access. The computer’s owner can change that. See Change what a teammate can access.

See also

  1. 01Browse and search your project's foldersFiles & docs · 4 min
  2. 02Open and edit project filesFiles & docs · 4 min
  3. 03Create a documentFiles & docs · 3 min
  4. 04Copy files into your projectFiles & docs · 2 min
  5. 05Use Files on your iPhoneFiles & docs · 3 min

Did this help?

Service

If Enjoy doesn’t work as this manual describes, a person will help.