> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/ai-totsru/ide-plugins-overview/vs-code-plugin.md).

# VS Code IDE

Aikido は、ハードコードされた秘密情報（APIキー、トークン）や安全でないコードパターン（SQLインジェクション、パストラバーサルなど）をプロジェクトから自動的にスキャンするため、問題を早期に発見し、コードベースの安全性を保てます。

スキャンは、ファイルを開くか変更を保存するたびに自動で実行されるため、開発の早い段階で問題を簡単に見つけられます。

セキュリティ上の問題が見つかると、それらはコード内で直接ハイライトされ、Aikido ウィンドウにも一覧表示されます。

![](/files/46aefafb2d9dfc7f0d40b60ab1b264bf133dd1bd)

{% stepper %}
{% step %}

### 拡張機能を開いて「Aikido Security」をインストール

<figure><img src="/files/c261a4c368ffae52ba892bf8e31480138975f70c" alt=""><figcaption></figcaption></figure>

代わりに、これらのリンクから各マーケットプレイスに移動できます

* [VS Code](https://marketplace.visualstudio.com/items?itemName=AikidoSecurity.aikido)
* [Windsurf](https://open-vsx.org/extension/AikidoSecurity/aikido) / [Cursor](https://open-vsx.org/extension/AikidoSecurity/aikido) / [Kiro](https://open-vsx.org/extension/AikidoSecurity/aikido) / [Google Antigravity](https://open-vsx.org/extension/AikidoSecurity/aikido)
  {% endstep %}

{% step %}

### Aikidoで認証する

<img src="/files/a1939d179552c9444ed8ceda22b3be145c9c243f" alt="" data-size="line"> サイドバーのアイコンをクリックしてAikidoプラグインを開き、「Connect to Aikido」をクリックしてAikidoプラットフォームに認証します。

<figure><img src="/files/820c87b70e3546a64fc6036302bcee3f04709fcb" alt=""><figcaption></figcaption></figure>

代わりに、コマンドパレットを開いて次を実行できます `Aikido: ログイン`

自動認証がうまくいかない場合は、Aikido内で個人用アクセスを手動で作成できます。次に移動してください [統合ページに移動し、手順に従ってください](https://app.aikido.dev/settings/integrations?section=ide).
{% endstep %}

{% step %}

### サンプルを試してみる

以下にサンプルがあります `index.js` 拡張機能が正しく動作しているか確認するために使用できるファイルです。SASTの問題が1つ（SQLインジェクション）と、公開されたシークレットが1つ（SQL Serverの接続文字列）検出されるはずです。

```javascript
const app = {}

app.get("/user", (req, res) => {
    const connStr = "Server=tcp:myserver.database.windows.net,1433;Initial Catalog=mydb;Persist Security Info=False;User ID=myuser;Password=$uperSecret123!@#";
    const username = req.query.username
    const unsafeQuery = `SELECT * FROM users WHERE username = '${username}'`
    sql.connect(connStr).query(unsafeQuery, (err, result) => {
        res.status(200).send(result)
    })
})
```

{% endstep %}

{% step %}

### 追加のセキュリティツールを有効にする

IDEでAikidoを次のような拡張パックで拡張しましょう [AIエージェント向けのMCP](/docs/docs-ja/ai-totsru/aikido-mcp.md), [pre-commitフック](/docs/docs-ja/ai-totsru/aikido-secrets-pre-commit-hook.md)、 [Safe Chain](/docs/docs-ja/kdosukyan/aikido-malware-scanning.md)。詳細は以下のドキュメントをご覧ください。

{% content-ref url="/pages/22e70f9450fcdcd2a38b4535fb8a9cf951d68cd2" %}
[Aikido 拡張パック](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/aikido-expansion-packs.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}

プラグインがインストールされたので、作業中にセキュリティ上の問題を見つけるのに役立つ機能を確認できます:

{% content-ref url="/pages/3dfde686ecf7d74a621887ca00e5f424b7977ac7" %}
[IDE 内でのリアルタイム SAST、Secrets、IaC スキャン](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/real-time-code-scanning-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/b92562cb2024df554e808edc27e5331630c25e76" %}
[Broken mention](broken://pages/b92562cb2024df554e808edc27e5331630c25e76)
{% endcontent-ref %}

{% content-ref url="/pages/fff307894e2c08dfd40a07ab0f4892e23b70da2d" %}
[IDE 内でのオープンソース依存関係スキャン（SCA）](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/open-source-dependency-scanning-sca-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/29e684dbc14043d4f997ce83025f0d97ebccf593" %}
[IDE でのワークスペース全体スキャン](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/full-workspace-scan-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/f1c11358da27d679d241d27159a227eee3d517fb" %}
[IDE 内の Aikido AI](/docs/docs-ja/ai-totsru/ide-plugins-overview/features/aikido-ai-in-ide.md)
{% endcontent-ref %}

{% content-ref url="/pages/b65694ed0557e5a962ebbb85aac5b0a82784cf41" %}
[VS Code - 拡張機能が接続を繰り返し切断する](/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/vs-code-extension-keeps-disconnecting.md)
{% endcontent-ref %}

{% content-ref url="/pages/e0ef2730dd79e43791f0305e22201871e5ff6a87" %}
[VS Code - サポート用情報](/docs/docs-ja/ai-totsru/ide-plugins-overview/troubleshooting/vs-code-information-for-support.md)
{% endcontent-ref %}


---

# 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://help.aikido.dev/docs/docs-ja/ai-totsru/ide-plugins-overview/vs-code-plugin.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.
