Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>DB ExplorerNew to Visual Studio Code? Get it now.
DB Explorer

DB Explorer

hannos

|
147 installs
| (0) | Free
Connect to your Database for browsing, queries, and data editing.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DB Explorer (VS Code Extension)

VS Code extension for working with databases.

Currently only PostgreSQL is supported.

Screenshots

Data Editor

DB Explorer Data Editor

Statement CodeLens

DB Explorer Statement CodeLens

Activity Bar

DB Explorer Activity Bar

Configuration

Create a profile from the Command Palette with DB Explorer: Add Connection, or add profiles manually to your user or workspace settings:

"dbExplorer.profiles": [
  {
    "id": "local",
    "label": "Local Postgres",
    "engine": "postgres",
    "host": "localhost",
    "port": 5432,
    "database": "postgres",
    "user": "postgres"
  }
]

When connecting, the extension will prompt for a password and store it in VS Code SecretStorage.

Running a Query

  • Connect via Command Palette: DB Explorer: Connect
  • Open a SQL file and place the cursor in a statement (or select SQL)
  • Use the Run statement CodeLens to run a single SQL statement directly from the editor
  • Run DB Explorer: Run Query to see results in a webview
  • Use the Cancel button in the results panel to stop long-running queries

Managing Stored Passwords

  • Run DB Explorer: Clear Stored Password to remove a saved password
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft