> 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/aitotsru/ide-plugins-overview/vs-code-plugin.md).

# VS Code IDE

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

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

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

![](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-bbe1e406b29f0edb034b42b4d4159fd56db423ac%2Fucarecdn-6b2c3b03-c7cb-4ead-8b4f-6f387a718847.gif?alt=media)

{% stepper %}
{% step %}

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

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-61a044fa3a0a9afef925ff1fc6b480eaad64cd79%2FScreenshot%202025-11-25%20at%2014.33.47.png?alt=media" 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="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-4169aeded957117dd018a388c5d5cf708cf23f0c%2FScreenshot%202025-11-25%20at%2014.52.14.png?alt=media" alt="" data-size="line"> サイドバーのアイコンをクリックしてAikidoプラグインを開き、「Connect to Aikido」をクリックしてAikidoプラットフォームで認証してください。

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-59c6e74d317eb1b03023ee36aea795d5977faca0%2FScreenshot%202026-01-07%20at%2013.50.27.png?alt=media" 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/aitotsru/aikido-mcp.md), [pre-commitフック](/docs/docs-ja/aitotsru/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/aitotsru/ide-plugins-overview/features/aikido-expansion-packs.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}

プラグインがインストールされたので、作業しながらセキュリティ上の問題を見つけるのに役立つ機能を使い始めることができます。

{% content-ref url="/pages/3dfde686ecf7d74a621887ca00e5f424b7977ac7" %}
[IDEでのリアルタイムSAST、シークレット、IaCスキャン](/docs/docs-ja/aitotsru/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/aitotsru/ide-plugins-overview/features/open-source-dependency-scanning-sca-in-ide.md)
{% endcontent-ref %}

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

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

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

{% content-ref url="/pages/e0ef2730dd79e43791f0305e22201871e5ff6a87" %}
[VS Code - サポート用情報](/docs/docs-ja/aitotsru/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/aitotsru/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.
