Workspace management in the Cloud Shell Editor

The Cloud Shell Editor lets you manage your projects as workspaces. A workspace usually represents the root folder of your project and includes your project-specific configuration files. A Home workspace (based on your Home directory) is created for you automatically.

With workspaces, you can specify persistent settings, run and debug configurations, and UI states (like open files) for all the folders in your workspace.

This page explains how to create, open, save, and close a workspace, and configure Cloud Shell Editor and workspace settings.

Creating a new workspace

To create a new workspace:

  1. Using the Cloud Shell terminal, create a new directory to use as your workspace:
    • Use mkdir to manually create a new directory
    • Use git clone to copy in an existing repository
  2. After your directory is ready, open it as a new workspace by clicking File > Open Workspace.

Opening a workspace

You can open a workspace in one of the following ways:

  • Click File > Open Workspace.

  • If no workspaces are open, click the Open Workspace button in the Cloud Shell Editor Explorer view.

    Open Workspace button accessible in Explorer when no workspaces are open

  • Select a recently opened workspace from the Recent section in the Welcome to Cloud Shell window.

    Alternatively, click File > Open Recent Workspace.

    Recently opened workspaces like hello-world-1 and appengine-guestbook-python available under Recent. Clicking their linked names opens the workspace in the Explorer

Opening a Home workspace

To operate using a Home workspace, open your Home directory as your workspace by clicking File > Open Workspace and then choose your Home directory.

Saving a workspace

After you've added project folders to your workspace and configured it, you can save your workspace under a new name by clicking File > Save Workspace As.

Closing a workspace

To close your workspace, click File > Close Workspace and then click OK when prompted.

Configuring settings

The Cloud Shell Editor's behavior and interface are easily configured with the Settings menu. You can define your preferences for debugging configurations, YAML editing support, and Command Palette history limits, among a variety of settings using this Settings editor. Settings are accessible through File > Settings > Open Preferences.

Broadly, there are two types of settings:

  • User settings: Globally-applicable settings, applied to all your instances of the Cloud Shell Editor.
  • Workspace settings: Workspace-specific settings, applied to only the currently active workspace. These settings are saved in the .theia/settings.json file in your workspace folder and can be shared using version control or by downloading the workspace folder.

To search for a setting, you can use the Search Settings search bar that returns a set of settings that match your query, filtering out those that don't relate to your criteria. The settings themselves can be set either by filling in the input field, choosing an option from a dropdown menu, or toggling a checkbox.

Settings interface with tabs for User and Workspace with Debug settings being viewed