启动 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 会话,请执行以下操作: 点击“激活 Shell 按钮” 在 Google Cloud 控制台中激活 Cloud Shell Google Cloud 控制台

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

系统随即会在 Google Cloud 控制台的底部窗格中启动一个会话。

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

从 Cloud Shell 终端启动

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

cloudshell edit .

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