Codespaces has a number of new features to get you coding fast, from anywhere on the web, with a single click. Let's jump right in!
You can now add recommended secrets to a project when creating a Codespace!
Recommending secrets will ensure developers won't miss any API keys when creating a Codespace from your repo. You can specify any secrets you need to run your project in a Dev Container. If a developer already has a secret stored in their user secrets, Codespaces recommends they add the secret to their repository. Developers can worry less about setup and jump right into development!
Creating A Share Link & Resuming A Codespace
Do you want to share your project for others to try out? You can generate a share link to share in a tweet, add to your website, or send to a friend.
Want developers to pick up on the last Codespace they had when they clicked your share link? You can set your share links to drop developers into the same Codespace every time by selecting "Quick start."
You can select a specific Dev Container for the share link to create a codespace from! Codespaces detects the repo and branch from your repository, limiting your setup.
We've even made it easier to embed the share link into a nice "Codespaces" badge with HTML and Markdown. Nifty!
If your users have never created a codespace from your share link, they are recommended to create a codespace. If users already have a codespace from your share link, they are be prompted to resume their codespace.
Would a Dev Container by any other name smell as sweet?
You can now name your Dev Containers! By defining the property
name in your devcontainer.json, you can set the name that will appear under the Dev Container selection on the Codespaces creation page. Even if you don't define the
name property in your devcontainer.json, Codespaces will still infer a more useful name from your Dev Container file path.
Jumping Into Development From A Repository With A Comma
Do you want to collaborate on a repository, PR, or Branch? You can jump right back into your Codespace with the ',' key. No need to go to github.com/codespaces, or go to your Code<> drop-down to jump into development. Just one button and you're back to developing!
Check out the docs:
Want to leave feedback? Make a post on our discussions page