启动 Cloud Shell 编辑器

可以通过不同的方式启动 Cloud Shell Editor,以更好地满足您的使用场景。

启动独立的 Cloud Shell Editor 会话

要启动 Cloud Shell 会话并开始使用 Cloud Shell Editor,最简单的方法是直接使用 ide.cloud.google.com 来启动 Cloud Shell Editor 会话。 您仍然可以随时访问 Cloud Shell 终端,方法是点击 Cloud Shell 菜单栏中的 激活 Shell 按钮 打开终端

要在启动独立 Cloud Shell 会话的同时自动开启 Cloud Shell 终端和 Cloud Shell Editor,请改用 shell.cloud.google.com

从 Google Cloud 控制台启动 Cloud Shell Editor

如需从 Google Cloud 控制台启动 Cloud Shell 会话,请点击 Google Cloud 控制台中的 激活 Shell 按钮 激活 Cloud Shell

控制台图标栏中的“激活 Cloud Shell 编辑器”按钮。

这将在 Google Cloud 控制台的底部窗格中启动一个会话。

如需启动编辑器,请点击 Cloud Shell 窗口工具栏上的 代码编辑器按钮 打开编辑器

从 Cloud Shell 终端启动

您可以在 Cloud Shell 终端(可通过点击 Google Cloud 控制台中的激活 Shell 按钮 激活 Cloud Shell 进行访问)中运行以下命令:

cloudshell edit .

此操作将在同一个窗格中启动 Cloud Shell Editor。