# 克隆样例插件

### 克隆现有 FormIt 插件存储库

可以从 FormIt 团队克隆各种插件存储库。这些插件会演示不同的 UI 类型和一些可通过插件实现的高级功能。

每个插件都存储在其自己的存储库中。可以在以下位置找到它们：[FormIt3D Organization Repos](https://github.com/FormIt3D)

### GitHub Desktop

[GitHub Desktop](https://desktop.github.com) 提供了一个易于使用的界面，用于克隆存储库、查看文件更改以及在本地计算机和在线存储库之间推送/拉取更改。GitHub Desktop 提供的一些功能包括：

* 创建一个新的存储库，以在 GitHub 上托管您的插件。
* 使用 GitHub Desktop 将新的（空）GitHub 存储库克隆到本地计算机。
* 通过在本地将新文件添加到存储库文件夹，来开发您的插件。
* 使用 GitHub Desktop 将您的插件文件和目录推送到您的存储库。
* 在您的存储库中启用 GitHub Pages，以便 FormIt 可以加载和显示您的 GitHub 托管插件。

### 使用 GitHub Desktop 克隆样例插件存储库

在 GitHub 中，选择要克隆或修改的插件项目。单击 **“代码”** 按钮，然后从下拉列表中复制地址。

![](/files/O8i4Ca0N3rSYdvCYkmxn)

打开 GitHub Desktop 应用程序，单击 **“当前存储库”** ，然后选择 **“克隆存储库”**。

![](/files/dPqZoGOephow5NIvkSHA)

选择 **“URL”** 选项卡、将复制的链接粘贴到第一个字段，然后在计算机上选择本地文件夹路径以保存这些文件。单击 **“克隆”**。

![](/files/Z7Xig4hR9IlowInKhJIP)

### 在 Visual Studio Code 中打开项目

启动 Visual Studio Code。 转到 **“文件”**>**“打开文件夹”**，然后选择包含插件文件和文件夹的文件夹，例如 C:\Users\Documents\GenerateStringLights\v22\_0


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://windows.help.formit.autodesk.com/zh-cn/plugins/how-to-develop-plugins/advanced-development/cloning-a-sample-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
