Overview

Using the CodeSpace in a browser can be a little awkward (for example, it can be easy to accidentally close the browser tab). It’s possible to use a local installation of VS code to access the Codespace too.

Steps

Caution!

Codespaces have to be created in the browser/cloud. After a Codespace is created, you can use a local installation of VSCode to access the CodeSpace without using a browser.

  1. Install VSCode (and run it)
  2. Install the “Git Codespace” extension by either:
    1. Use the Install option from the GitHub Codespaces extension page.
    2. Or, if that doesn’t work, open VSCode, navigate to the extension management tab, search for “Git Codespace”, select it, and press install.
      Install GitHub Codespaces Extension
  3. Navigate to the Remote Explorer tab and select GitHub Codespace. Select Sign it, this should pull up a browser window prompting you to log into Github, use the account associated with your git classroom. Explore to select Codespace

Acknowledgements

Thanks to Matt Kubas for providing the instructions!