---
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
---

# 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, and use the links to jump to the related source code location or open the code 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 currently 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" /%}

### Other insight types{% #other-insight-types %}

The following insight types are in limited support:

- Runtime errors collected by [Error Tracking](https://docs.datadoghq.com/tracing/error_tracking.md)
- Flaky tests detected by [Test Optimization](https://docs.datadoghq.com/tests/explorer.md)

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

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