1. Select an owner for the new repository, enter a repository name, select your preferred privacy setting, and click **Create repository from template**. 1. On the main page of the newly created repository, click the **{% octicon "code" aria-label="The code icon" %} Code** button and select the **Codespaces** tab. ![New codespace button](/assets/images/help/codespaces/new-codespace-button.png) 1. On the **Codespaces** tab, click **Create codespace on main**.