Skip to content

Repository files navigation

EFCore.Visualizer

Entity Framework Core Query Plan Visualizer

View Entity Framework Core query plan directly inside Visual Studio, VS Code and JetBrains Rider.

Jump to: Visual Studio · VS Code · JetBrains Rider

Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Installs Visual Studio Marketplace Rating

Giorgi/EFCore.Visualizer | Trendshift Giorgi/EFCore.Visualizer | Trendshift Giorgi/EFCore.Visualizer | Trendshift

Introduction

With the Entity Framework Core query plan debugger visualizer, you can view the query plan of your queries directly inside Visual Studio. Currently, the visualizer supports SQL Server, PostgreSQL, SQLite, MySQL and Oracle.

Important

The visualizer requires Visual Studio 2022 Version 17.14 (Released on May 13th, 2025) or newer, including Visual Studio 2026 and supports EF Core 7 or newer.

Visual Studio Toolbox - EFCore.Visualizer Extension for Visual Studio

Visual Studio Toolbox - EFCore.Visualizer Extension for Visual Studio

Usage

After installing the extension from the marketplace, a new debugger visualizer will be added to Visual Studio. When debugging, hover over your queries and there will be an option to view the query plan (Here we show the actual query plan which means it forces query execution ):

VariableVisualizer

Click on 'Query Plan Visualizer' and the query plan will be displayed for your query.

SQL Server:

Sql Server Plan

Sql Server Plan

PostgreSQL:

PostgreSQL Plan

PostgreSQL Plan

MySQL:

MySQL Plan

MySQL Plan

SQLite:

SQLite Plan

Oracle:

The query plan includes Actual IO stats, Outline data, Projections, and Predicates.

Oracle Plan Oracle Plan

Visual Studio Code

VS Code Marketplace Version

Install the EFCore Visualizer extension from the Visual Studio Marketplace, or search for "EFCore Visualizer" in VS Code's Extensions view. While you debug with Microsoft's C# extension, hover over a query in Variables or Watch and click the Visualize Query Plan button at the end of its row, or right-click the query and choose Visualize Query Plan. The plan opens in a tab beside the editor, with the same plan pages as in Visual Studio. The tab's title bar has a Refresh button and a Copy SQL button, which copies the query's SQL with its parameters. It requires VS Code 1.90 or newer and supports EF Core 7 or newer.

A SQL Server execution plan in a VS Code tab, beside the C# code of the paused app

See the VS Code extension's README for details.

JetBrains Rider

The visualizer is also available for Rider. While you debug, click Visualize Query Plan at the end of a query's row in Variables, Watches or the editor's hover popup. The same command is on the Variables toolbar and in the right-click menu. The plan opens in an editor tab, with the same plan pages as in Visual Studio. Each variable gets its own tab, and visualizing it again shows the new plan when the query changed. It requires Rider 2026.2 or newer and supports EF Core 7 or newer.

The Visualize Query Plan link on an EF Core query, in the editor's hover popup and on its row in Variables

A PostgreSQL execution plan in a Rider editor tab, in the dark theme

A SQL Server execution plan in a Rider editor tab, in the light theme

See the Rider plugin's README for details.

Known Issues (Visual Studio):

Credits

This extension uses pev2, html-query-plan (built from Rudi Bruchez's fork) and Treeflex to display query plans, and highlight.js to highlight SQL.

Releases

Sponsor this project

Packages

Used by

Contributors

Languages