> ## Documentation Index
> Fetch the complete documentation index at: https://semgrep-ee9d73d8-mintlify-b75b9a88.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Run IDE scans

> Semgrep supports the following IDE extensions:

| Name                                                         | Marketplace link                                                                                                                                                  | Documentation                                              |
| :----------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------- |
| Microsoft Visual Studio Code                                 | <a href="https://marketplace.visualstudio.com/items?itemName=semgrep.semgrep" target="_blank"><Icon icon="external-link" iconType="solid" /> `semgrep-vscode`</a> | [Semgrep VS Code extension](/extensions/semgrep-vs-code)   |
| IntelliJ Ultimate Idea<br />and many other IntelliJ products | <a href="https://plugins.jetbrains.com/plugin/22622-semgrep" target="_blank"><Icon icon="external-link" iconType="solid" /> `semgrep-intellij`</a>                | [Semgrep IntelliJ extension](/extensions/semgrep-intellij) |
| Emacs                                                        | <a href="https://github.com/emacs-lsp/lsp-mode" target="_blank"><Icon icon="external-link" iconType="solid" /> `lsp-mode`</a>                                     | See repository README                                      |

## Quickstart

Select your IDE in the following tabs and follow the instructions to set up your first Semgrep IDE scan.

<Tabs>
  <Tab title="Visual Studio Code (VS Code)">
    For Microsoft VS Code users:

    <Steps>
      <Step>
        [Install the Semgrep extension](https://code.visualstudio.com/editor/extension-marketplace#_install-an-extension). If you're unfamiliar with installing VS Code extensions, see the Extension Marketplace's article [Install an Extension](https://code.visualstudio.com/editor/extension-marketplace#_install-an-extension).
      </Step>

      <Step>
        Use <kbd>Ctrl+⇧Shift+P</kbd> or <kbd>⌘Command+⇧Shift+P</kbd> (macOS) to launch the Command Palette, and run the following to sign in to Semgrep AppSec Platform:

        ```text theme={null}
        Semgrep: Sign in
        ```

        You can use the extension without signing in, but doing so enables better results since you benefit from [Semgrep Code](/semgrep-code/overview) and its [Pro rules](/semgrep-code/pro-rules).
      </Step>

      <Step>
        Launch the Command Palette using <kbd>Ctrl+⇧Shift+P</kbd> or <kbd>⌘Command+⇧Shift+P</kbd> (macOS), and scan your files by running:

        ```text theme={null}
        Semgrep: Scan all files in workspace
        ```
      </Step>

      <Step>
        To see detailed vulnerability information, hover over the code underlined in yellow. You can also see the findings identified by Semgrep using <kbd>⇧Shift+Ctrl+M</kbd> or <kbd>⌘Command+⇧Shift+M</kbd> (macOS) and opening the **Problems** tab.
      </Step>
    </Steps>
  </Tab>

  <Tab title="IntelliJ">
    For JetBrains IntelliJ users:

    <Steps>
      <Step>
        Install the Semgrep extension:

        * Visit [<Icon icon="external-link" iconType="solid" /> Semgrep's page on the JetBrains Marketplace](https://plugins.jetbrains.com/plugin/22622-semgrep).
        * In IntelliJ: **Settings/Preferences > Plugins > Marketplace > Search for `semgrep-intellij` > Install**. You may need to restart IntelliJ for the Semgrep extension to be installed.
      </Step>

      <Step>
        Sign in: Press <kbd>Ctrl+⇧Shift+A</kbd> (Windows) or <kbd>⌘Command+⇧Shift+A</kbd> (macOS) and sign in to Semgrep AppSec Platform by selecting the following command:

        ```text theme={null}
        Sign in with Semgrep
        ```
      </Step>

      <Step>
        Test the extension by pressing <kbd>Ctrl+⇧Shift+A</kbd> (Windows) or <kbd>⌘Command+⇧Shift+A</kbd> (macOS) and run the following command:

        ```text theme={null}
        Scan workspace with Semgrep
        ```
      </Step>

      <Step>
        See Semgrep findings: Hold the pointer over the code that has the red underline.
      </Step>
    </Steps>

    <Info>
      **FEATURE MATURITY**

      Semgrep's IntelliJ extensions are currently in beta. Currently, the IntelliJ extension only supports Semgrep Community Edition (CE) - it doesn't support Semgrep Supply Chain, Secrets, Pro rules, or Pro Engine. Please join the [Semgrep community Slack workspace](https://go.semgrep.dev/slack) and let the Semgrep team know if you encounter any issues.
    </Info>
  </Tab>
</Tabs>

## Scan scope and limitations

Semgrep's VS Code extension supports the use of Pro rules and cross-file analysis. Other IDE scans use Semgrep Community Edition (CE) for its speed, and these scans are limited to single-file analysis. As a result, you may encounter a higher rate of false positives.
