Bitzu

GH-900 ยท Automation and AI-assisted development

github.dev versus Codespaces

The lightweight browser editor opened with the period key versus a full Codespace: capabilities, no terminal or runtime in github.dev, and when to use each.

Key points

  • github.dev (VS Code for the Web): press . on a repository page or replace github.com with github.dev in the URL.
  • Opens almost instantly, free.
  • No compute: no terminal, build or run; only web-compatible extensions.
  • Codespace: starts in a few minutes; dedicated VM with full terminal, running, debugging, most VS Code extensions.
  • Quick edits: github.dev. Running code: codespace.

Source: https://docs.github.com/en/codespaces/the-githubdev-web-based-editor

Practice questions

Single choice

Which key opens a repository in github.dev while you view it on GitHub?

  1. The period key (.)
  2. The slash key (/)
  3. The question mark key (?)
  4. The Escape key
Show answer

Answer: A. The period key (.)

Pressing the period key opens the repository or pull request in VS Code for the Web. Replacing github.com with github.dev in the URL does the same.

Select all that apply

Which limitations apply to github.dev?

  1. You cannot build or run your code
  2. There is no integrated terminal
  3. Only web-compatible extensions can be installed
  4. It takes several minutes to provision a VM
  5. It works without signing in to GitHub
Show answer

Answer: A. You cannot build or run your code, B. There is no integrated terminal, C. Only web-compatible extensions can be installed

github.dev has no attached compute, no integrated terminal and only web-compatible extensions. It does not need a VM to start or lack sign-in.

True or false

True or false: github.dev gives you a terminal so you can run your tests.

Show answer

Answer: False

False. github.dev has no compute and no integrated terminal; to run tests you need a codespace or a local clone.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module