Visual Studio Code Command Palette について
コマンドパレットは、Codespaces で使用できる Visual Studio Code の中心的な機能の1つです。 The Visual Studio Code Command Palette allows you to access many commands for Codespaces and VS Code. For more information on using the VS Code Command Palette, see "User Interface" in the VS Code documentation.
Accessing the VS Code Command Palette
You can access the VS Code Command Palette in a number of ways.
-
Shift+Command+P (Mac) / Ctrl+Shift+P (Windows/Linux).
このコマンドは Firefox で指定されているキーボードショートカットになりますので、ご注意ください。
-
F1
-
アプリケーションメニューから、[View] > [Command Palette…] をクリックします。
GitHub Codespaces のコマンド
To see all commands related to GitHub Codespaces, access the VS Code Command Palette, then start typing "Codespaces".
Codespace のサスペンドまたは停止
If you add a new secret or change the machine type, 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 VS Code Command Palette, then start typing "stop". [Codespaces: Stop Current Codespace] を選択します。
テンプレートから開発コンテナを追加する
To add a dev container from a template, access the VS Code Command Palette, then start typing "dev container". [Codespaces: Add Development Container Configuration Files...] を選択します。
Codespace を再構築する
開発コンテナを追加するか、設定ファイル(devcontainer.json
および Dockerfile
)のいずれかを編集する場合、変更を適用するために codespace を再構築する必要があります。
To rebuild your container, access the VS Code Command Palette, then start typing "rebuild". Codespaces: Rebuild Container(Codespaces: コンテナをリビルド)を選択してください。
Codespace のログ
You can use the VS Code Command Palette to access the codespace creation logs, or you can use it export all logs.
To retrieve the logs for Codespaces, access the VS Code Command Palette, then start typing "log". [Codespaces: Export Logs] を選択して Codespaces に関連するすべてのログをエクスポートするか、[Codespaces: View Creation Logs] を選択して設定に関連するログを表示します。