Updated on 2024-05-09 GMT+08:00

Visual Studio Code Plug-in

  1. Download the Visual Studio Code plug-in.
  2. Manually install funcitongraph-tools, as shown in Figure 1.

    Figure 1 Installing funcitongraph-tools

  3. Add the folder in which the installation file is located, as shown in Figure 2.

    Figure 2 Adding the folder of the installation file

  4. Right-click, choose fgs.createFunction from the shortcut menu, and select a runtime to create a function, as shown in Figure 3.

    Figure 3 Creating a function
    After a function is created, the functiongraph.yaml and index.js files are automatically generated, as shown in Figure 4.
    Figure 4 Configuration files

  5. Right-click and choose fgs.createFunctionBasedOnTemplate from the shortcut menu to create a function template.
  6. Right-click and choose fgs.exportFunction from the shortcut menu to export a function. Then you can upload the function to FunctionGraph.