> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/lian-xie/visual-studio-code.md).

# Visual Studio Code（アルファ）

{% hint style="warning" %}
この機能はGitBookでは現在メンテナンスされておらず、変更される可能性があります。
{% endhint %}

GitBook Visual Studio Code インテグレーションを使うと、コードエディタ内から直接、ドキュメントや知識を検索したり質問したりできます。専用のサイドパネルとさまざまなコマンド一覧により、毎日使うツール内でチーム全体の知識を簡単に活用できます。

### インストールと設定

Visual Studio Code インテグレーションは、GitBook アプリの **インテグレーション** 画面から、または [Visual Studio Code の拡張機能マーケットプレイス](https://marketplace.visualstudio.com/items?itemName=GitBook.gitbook-vscode).

Visual Studio Code にインテグレーションをインストールした後、設定を完了するには GitBook アカウントにログインする必要があります。

{% hint style="warning" %}
GitBook Extension for Visual Studio Code は現在、 [Apple シリコン搭載の Mac](https://support.apple.com/en-gb/HT211814) および Windows PC でのみ利用できます。
{% endhint %}

#### 1. 開発者トークンを使って GitBook にサインインする

Visual Studio Code が GitBook にアクセスできるようにするには、開発者トークンを追加して IDE にアクセス権を付与する必要があります。新しい GitBook 開発者トークンは、 [開発者設定](https://app.gitbook.com/account/developer).

で生成できます。トークンを取得したら、コマンドパレット（⌘+⇧+P）の **GitBook: GitBook にサインイン**

#### 2. GitBook の組織を選択する

個人用アクセストークンを保存したら、 [スニペット](broken://pages/2d5113188426048109674ea762633cb23813bab8) を追加したい組織を選択する必要があります。

コマンドパレットで、 **GitBook: 組織を切り替える** オプションから組織を選べます。所属している組織が 1 つだけの場合は、すでに選択されています。

### GitBook のドキュメントについて質問する

GitBook VS Code 拡張機能を使うと、サイドパネルで文脈に応じた質問をして、チームの知識にアクセスできます。このセクションには、チームメンバーによる最近のスニペットの一覧も含まれているため、VS Code から他の人がチームのナレッジベースに何を保存しているかをすばやく確認できます。

情報を呼び出すには、GitBook パネルを開いて検索バーにクエリを入力するだけです。GitBook 組織内の情報に基づいて要約結果が得られます。

{% hint style="info" %}
この機能を使用するには、 [GitBook AI Search（ベータ）](/docs/documentation/ja-gitbook-documentation/creating-content/searching-your-content/gitbook-ai.md) が組織で有効になっている必要があります。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/lian-xie/visual-studio-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
