# 你的第一個插件

## 取得 Eagle 桌面應用程式 <a href="#htif1" id="htif1"></a>

首先，您需要安裝 Eagle 桌面應用程式。您可以點擊此處下載安裝程式：<https://eagle.cool/download>，如果您已經安裝了 Eagle 桌面應用程式，請確保您已更新到最新版本。我們已專門新增了多項功能，以便為您提供更好的插件開發體驗。

***

## 建立插件 <a href="#u0omz" id="u0omz"></a>

1. 點擊工具欄上的「插件」按鈕。

   <figure><img src="https://3610077812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs4bjQFr3EFnc58JiXhsg%2Fuploads%2Fgit-blob-b91993a64e8f72b078e1bd013383d2cacbba7217%2Fimage%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
2. 在彈出的選單中，選擇「開發者選項」。
3. 點擊「建立插件」。

   <figure><img src="https://3610077812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs4bjQFr3EFnc58JiXhsg%2Fuploads%2Fgit-blob-edca5b0839b32f9b079a1a4963c3b4de5868b825%2Fimage%20(11).png?alt=media" alt=""><figcaption></figcaption></figure>
4. 在新視窗中，選擇您想要新增的插件類型（視窗、背景服務、格式擴充）。這裏我們選擇「視窗」類型。

   <figure><img src="https://3610077812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fs4bjQFr3EFnc58JiXhsg%2Fuploads%2Fgit-blob-999ded00ad28745a60597a5219a0c526d346b85a%2Fimage%20(7).png?alt=media" alt=""><figcaption></figcaption></figure>
5. 選擇您想要儲存插件的位置，然後完成新增。

如果您想更多瞭解不同插件類型的區別，可以參考[這篇文章](https://developer.eagle.cool/plugin-api/zh-tw/get-started/plugin-types)。這些資訊將幫助您確定哪種插件類型適合您的需求。

***

## 執行範例插件 <a href="#cpnwm" id="cpnwm"></a>

1. 點擊工具欄上的「插件」按鈕。
2. 在彈出的選單中，找到剛才新增的插件，並點擊它。
3. 您將看到一個視窗彈出，視窗中顯示了插件的基本屬性。

***

## 在程式碼編輯器開啓插件目錄 <a href="#uclkm" id="uclkm"></a>

插件項目已經新增完成，這時候你可以使用 Visual Studio Code 或其它程式碼編輯器開啓這個資料夾。插件是由多個檔案組成的，你需要同時編輯這些檔案，因此你需要開啓整個資料夾，而不是其中某個檔案。

下個章節將詳細介紹插件檔案結構。

### &#x20;<a href="#vfkpl" id="vfkpl"></a>


---

# 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://developer.eagle.cool/plugin-api/zh-tw/get-started/creating-your-first-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.
