A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/code/docs/vscode/manage-functions-workspace below:

Manage functions in VS Code workspace | Cloud Code for VS Code

Skip to main content Manage functions in VS Code workspace

Stay organized with collections Save and categorize content based on your preferences.

This page shows you how to manage multiple Cloud Functions configurations in a single workspace and a multi-folder workspace, and how to rearrange your Cloud Run functions Explorer with Cloud Code.

Before you begin

This guide requires a workspace already setup (a launch.json file with at least one configuration listed). To get started with a sample, see the Create and deploy a function quickstart.

Manage multiple configurations in a single workspace

To add a new Cloud Function configuration to your launch.json file, follow these steps:

  1. Click Cloud Code and then expand the Cloud Functions Explorer.

  2. In the Cloud Run functions Explorer, hold your pointer over WORKSPACE and click Add new cloud function configuration.

  3. Follow the prompts and perform the following actions:

    1. Enter a function name
    2. Select a Cloud Run functions environment
    3. Enter an entry point (the name of the method to call for this function)
    4. Enter the test input

    Alternatively, you can manually enter these values into your launch.json file:

    {
        "configurations": [
          {
            "name": "Deploy Cloud Function",
            "type": "cloudcode.cloudfunctions",
            "request": "launch",
            "functionName": "hello-world-get",
            "gen": "GEN_2",
            "entryPoint": "helloGet"
          }
        ]
    }
    

    Your Cloud Run functions workspace corresponds to the first configuration listed in your launch.json file. The workspace name reflects the functionName of the first configuration listed in your launch.json file:

    {
        "configurations": [
          {
            "name": "Deploy Cloud Function",
            "type": "cloudcode.cloudfunctions",
            "request": "launch",
            "functionName": "hello-world-pub-sub",
            "gen": "GEN_2",
            "entryPoint": "helloPubSub"
          },
          {
            "name": "Deploy Cloud Function",
            "type": "cloudcode.cloudfunctions",
            "request": "launch",
            "functionName": "hello-world-get",
            "gen": "GEN_2",
            "entryPoint": "helloGet"
          }
        ]
    }
    
  4. (Optional) To deploy another configuration from your launch.json file, move the configuration you want to deploy to the top of the launch.json file and click refresh Refresh Cloud Functions Explorer.

Manage a multi-folder workspace

Cloud Code supports having multiple folders in a Cloud Run functions workspace if each function contains its own launch.json file.

Each Cloud Run functions workspace folder that appears is named after the first configuration's functionName in its corresponding launch.json file.

To arrange a multi-folder workspace for your project, see VS Code's Multi-root Workspaces.

Rearrange Cloud Run functions Explorer into your IDE's file Explorer

You can rearrange your Cloud Run functions Explorer into VS Code's file Explorer by performing the following:

  1. Drag your Cloud Run functions Explorer into VS Code's file Explorer:

    This arrangement displays your Cloud Run functions Explorer under the file Explorer so that you can view your deployed functions and Cloud Run functions workspace(s) in the same pane as your project files.

  2. (Optional) To undo this arrangement, right-click the Cloud Code: Cloud Functions Explorer's heading and select Reset location. This moves the Cloud Run functions Explorer back to the Cloud Code tab.

Get Support

To send feedback, report issues on

GitHub

, or ask a question on

Stack Overflow

.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This guide details how to manage multiple Cloud Functions configurations within a single workspace by adding and organizing configurations in the `launch.json` file, either manually or via the Cloud Code interface."],["You can manage multi-folder workspaces for Cloud Run functions, where each folder contains its own `launch.json` file, and each folder's name reflects the `functionName` of the first configuration listed in its `launch.json` file."],["The Cloud Run functions Explorer can be rearranged to appear within VS Code's file Explorer, allowing you to view deployed functions alongside your project files, and this arrangement can be undone by selecting \"Reset location\"."],["The workspace name will reflect the `functionName` value of the first configuration listed in the `launch.json` file and if there are multiple, you can move the desired configuration to the top to set the workspace."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4