---
title: Code Insights
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog IDE Plugins > Datadog Extension for VS Code & Cursor > Code
  Insights
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Code Insights

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

**Code Insights** keep you informed with code and library vulnerabilities reported by [Code Security](https://docs.datadoghq.com/security/code_security.md) that are relevant to your codebase.

The extension identifies vulnerabilities in the code with colored squiggles; hover over the line for more details.

{% video
   url="https://docs.dd-static.net/images//ide_plugins/vscode/code-insights-inline-hover.mp4" /%}

The **Code Insights** view in the Datadog sidebar lists all the issues found in the repository. Select an item to view the full insight. Use the links to open the related source code or the insight in Datadog.

You can group code insights by kind, file, priority, or service. You can also ignore individual code insights and set filters to view the ones you're most interested in.

{% image
   source="https://docs.dd-static.net/images/ide_plugins/vscode/code-insights-2.cd9cbbf80e91d4be930f0706593da3e7.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/ide_plugins/vscode/code-insights-2.cd9cbbf80e91d4be930f0706593da3e7.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Code Insights view." /%}

For specific insights about the file open in the active editor, check the **File Insights** view in the IDE's file explorer. This view also lists issues discovered by [Code Security](https://docs.datadoghq.com/ide_plugins/vscode/code_security.md) within the file.

{% video
   url="https://docs.dd-static.net/images//ide_plugins/vscode/file_insights_view.mp4" /%}

Code Insights also shows flaky tests detected by [Test Optimization](https://docs.datadoghq.com/tests/explorer.md). This insight type is in limited support.

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Learn more about Code Security](https://docs.datadoghq.com/security/code_security.md)
- [Learn more about Test Optimization](https://docs.datadoghq.com/tests/explorer.md)
