Documentation
Sandboxes
Templates

Templates

What are Templates?

Templates are starting points for development environments that you create through CodeSandbox. When you pick a template, you create a fork of the original project. Forked templates are already set up with the configuration, file structure and installed dependencies. So you don't have to spend time doing this each time you begin working on something new. They are easily accessible from the "Create" modal (opens in a new tab).

From the modal, CodeSandbox offers several official templates for several different programming languages.

You can also create your own custom templates from your projects. So you can fully customize your development start points for your particular use case and preferences. Once a custom template has been created, you can use it to start new projects through the "Create" modal (opens in a new tab). Custom templates can also be added to workspaces so members can use them. Any custom templates you can access can be found in the Templates folder (opens in a new tab) or under 'Workspace Templates' within the modal.

How to make a custom template

There are a few ways to create a template, but the main way is from within the "Sandbox Info" panel inside the editor. When viewing one of your Sandboxes, expand the "Sandbox Info" panel on the left. You will then see an edit icon in line with the "Sandbox Info" header. Just click the icon and then check the 'Template' box in the settings pane that opens on the right of the editor.

💡

You can also rename and set a description for the template from this interface, as well as configure the template privacy options. Private and Unlisted Templates are only available for Pro subscribers.

Make a Template from a Sandbox