EF Core Tools VS Code Extension
Features
- Runs
dotnet efcommands from a Quick Pick UI. - Chooses target and startup
.csprojvia picker or saved defaults. - Shows output in a dedicated integrated terminal.
- Lists DbContexts and optionally targets a specific context.
Commands
EF Core: Quick Runto access all common EF tasks.EF Core: Add MigrationEF Core: Update DatabaseEF Core: Remove Last MigrationEF Core: List MigrationsEF Core: List DbContextsEF Core: Script MigrationsEF Core: Drop DatabaseEF Core: Open TerminalEF Core: Set Default Projects
Settings
efcore.dotnetPath: Path todotnet.efcore.defaultProject: Relative path to target.csproj.efcore.defaultStartupProject: Relative path to startup.csproj.efcore.workDir: Working directory; defaults to workspace root.
Usage
- Open a workspace containing
.csprojfiles. - Run
EF Core: Set Default Projectsto save commonly used projects. - Run
EF Core: Quick Runand pick an action. - If
dotnet-efis not installed, install it withEF Core: Quick Run→Install dotnet-efor manually:dotnet tool install --global dotnet-ef.