The CodeHS Sandbox is a place where you can write programs outside of the bounds of an exercise. In the Sandbox, you can start a program from scratch in any of our programming languages and create anything that you can imagine.
Creating Programs in the Sandbox
Go to codehs.com/sandbox or click on the Sandbox link in the top left corner of any page. Make sure you are logged in so that you can save the program to your account.
Name your program and then click Create Program
Select any one of the programming languages from the CodeHS curriculum, or additional languages such as Elm, SQL, C, and C++.
You can also create and edit your very own website, that is hosted by CodeHS, by clicking on Edit Homepage. You can access and share your personalized web page by going to your username followed by .codehs.me.
You can create folders to help organize your programs. To create folders, click the blue plus sign, enter a name for your new folder, and click Add Folder
You can easily organize, rename, and delete programs. Click on the '...' to the far right in the program list to modify a program:
Rename: Rename the Sandbox Program
Copy: Make a duplicate of the program inside your own Sandbox
Move to Folder: Move program into one of your folders
Share: Create a share link for program
To recover deleted programs, visit your Account Settings, open the Code History tab, and choose Sandbox Trash.
Sharing and Embedding Sandbox Programs
There are many ways to share a Sandbox program, including sharing a link and embedding it in another webpage. Click Share to get a URL to share with others and choose to show or hide your code.
Forking Sandbox Programs
Forking is the ability to copy a program to your own sandbox, essentially taking a snapshot of it and making it your own. When viewing a shared Sandbox, click the fork button to create a separate copy of the program.
Collaborate on Programs With Others
With Collaboration, you and your classmates can use the CodeHS IDE to work together on the same coding activity live and in real time!
To start a collaboration:
Go to the Sandbox program you'd like to collaborate on
Click Share, then choose Collaborate
Copy the link and send to to anyone who you'd like to collaborate with
Remember to save as you work!
See For Students: Real Time Collaboration to learn more about collaborating on CodeHS!
See Tutorials to level up your coding skills with our interactive Tutorials!