What’s new for 2022–2023?

  • New-and-improved lectures (hopefully!) for CS50x, filmed once again in Sanders Theater, though with masks on, for health’s sake!
  • Lectures are now available in 4K HDR, which means they should look even better (hopefully!) on HDR monitors and TVs!
  • New lectures on Cybersecurity and Emoji in CS50x!
  • Instead of CS50 IDE, CS50 AP 2022–2023 uses a web-based version of VS Code, a popular text editor, available at code.cs50.io, which you’ll learn about in CS50x Week 1.
  • A new mystery to solve in CS50x’s Fiftyville using SQL!

All this and more!

Did you start CS50 AP in 2021–2022 or earlier?

Welcome back! Instead of CS50 IDE, CS50 AP 2022–2023 uses a cloud-based version of Visual Studio Code (VS Code) at code.cs50.io, which provides you with your very own “codespace” (i.e., workspace) for CS50.

How to log into your codespace

Visit code.cs50.io. Ignore any buttons that mention “VS Code Desktop.”

How to copy files from CS50 IDE to your CS50 Codespace

Download files from CS50 IDE

In your CS50 IDE terminal run the following command to change terminal location to your home directory

cd

Then run the following command to create a folder named “migration”

mkdir migration

Move the files and folders you want to copy over to VS Code to that folder you just created. You move files and folders via the GUI in the file tree on the left-hand-side of your CS50 IDE, or use the mv command if comfortable with command-line.

Then, right-click the folder “migration” and click “Download” to download the folder as a zip file to your computer.

Depending on the files sizes and your internet connection speed, the downloading process might take a few minutes or more.

Upload files to your codespace

In your codespace terminal (in the browser), run the following command to change terminal location to your home directory

cd

Then, right-click anywhere in the “Explorer” sidebar on your left-hand side and click “Upload…”, a file dialog will be prompted for you to choose the files you want to upload. Choose the zip file “migration.zip” you have just downloaded from CS50 IDE and upload it to your codespace.

Depending on the zip file size and your internet connection speed, the uploading process might take a few minutes or more.

Once the upload process is complete, run the following command to unzip the zip file

unzip migration.zip

Your files downloaded from CS50 IDE should be in the “migration” folder, and you can execute the below to view the files you have just migrated from CS50 IDE to your codespace

ls migration

How to use VS Code Desktop

If you are already familiar with VSCode and have it installed on your own computer, you can open your codespace in VS Code on your desktop. This does not download your files to your computer, but instead will launch a remote connection so you can access your codespace directly in VSCode rather than in a separate browser. This is entirely optional. You are not required to install VS Code to complete CS50 AP.