Note: Codespaces is currently in limited public beta and subject to change. For more information about joining the beta, see "About Codespaces."
The Command Palette is one of the focal features of Visual Studio Code and is available for you to use in Codespaces. The Command Palette allows you to access many commands for Codespaces and Visual Studio Code. For more information on using the Command Palette, see "User Interface" in the Visual Studio Code documentation.
You can access the Command Palette in a number of ways.
Shift + Command + P(Mac) /
Ctrl + Shift + P(Windows).
Note that this command is a reserved keyboard shortcut in Firefox.
From the Application Menu, click View > Command Palette….
To see all commands related to GitHub Codespaces access the Command Palette, then start typing "Codespaces".
If you add a new secret, you'll have to stop and restart the codespace for it to apply your changes.
To suspend or stop your codespace's container, access the Command Palette, then start typing "stop". Select Codespaces: Stop Current Codespace.
To add a dev container from a template, access the Command Palette, then start typing "dev container". Select Codespaces: Add Development Container Configuration Files...
If you add a dev container or edit any of the configuration files (
Dockerfile), you'll have to rebuild your codespace for it to apply your changes.
To rebuild your container, access the Command Palette, then start typing "rebuild". Select Codespaces: Rebuild Container.
You can use the Command Palette to access the codespace creation logs, or you can use it export all logs.
To retrieve the logs for Codespaces, access the Command Palette, then start typing "log". Select Codespaces: Export Logs to export all logs related to Codespaces or select Codespaces: View Creation Logs to view logs related to the setup.