About machine types
Note: You can only select or change the machine type if you are a member of an organization using Codespaces and are creating a codespace on a repository owned by that organization.
Typically, you can run your codespace on a choice of remote machine, from 2 cores to 32 cores. これらはそれぞれ、異なるレベルのリソースと支払い層を持っています。 For information, see "About billing for Codespaces."
By default the machine type with the lowest valid resources is used when you create a codespace. You can choose an alternative machine type either when you create a codespace or at any time after you've created a codespace.
For information on choosing a machine type when you create a codespace, see "Creating a codespace." For information on changing the machine type within Visual Studio Code, see "Using Codespaces in Visual Studio Code."
Changing the machine type in GitHub
-
In the top right corner of GitHub.com, click your profile photo, then click Your codespaces.
The current machine type for each of your codespaces is displayed.
-
Click the ellipsis (...) to the right of the codespace you want to modify.
-
Click Change machine type.
-
If multiple machine types are available for your codespace, choose the type of machine you want to use.
注釈: Your choice of available machine types may be limited by a policy configured for your organization, or by a minimum machine type specification for your repository. For more information, see "Restricting access to machine types" and "Setting a minimum specification for codespace machines."
-
Click Update codespace.
The change will take effect the next time your codespace restarts.
Force an immediate update of a currently running codespace
If you change the machine type of a codespace you are currently using, and you want to apply the changes immediately, you can force the codespace to restart.
-
At the bottom left of your codespace window, click Codespaces.
-
From the options that are displayed at the top of the page select Codespaces: Stop Current Codespace.
-
After the codespace is stopped, click Restart codespace.