The Neon Postgres Copilot Chat Extension brings Neon documentation and guidance directly into Visual Studio Code. Whether you're connecting Neon to your application, writing queries, or building database workflows, you can chat with AI-powered assistance backed by the latest Neon documentation.
🚀 Coming soon: Create and manage Neon databases directly from chat.
Benefits
Instant Neon documentation: Get real-time answers from curated Neon docs within Copilot Chat in VS Code.
Context-aware assistance: Ask database-related questions while working in your editor.
Future capabilities: Soon, you'll be able to interact with Neon's API by simply asking.
Getting started
It's assumed you already have the GitHub Copilot extension installed.
Setup is easy:
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar (or press Ctrl+Shift+X / Cmd+Shift+X on macOS).
Search for Neon Postgres.
Click Install to add the extension to your workspace.
Type @neondatabase (alias: @neon) in Copilot Chat to start asking questions. It may take a few moments for the @neondatabase chat participant to become available.
Example prompts
Try these prompts to explore Neon's capabilities:
Create a Neon project
@neondatabase How do I create a new project?
Learn how to start a new Neon Postgres project.
Use the Neon API
@neondatabase How do I get started with the Neon API?
Learn how to interact with Neon programmatically.
Branching for development
@neondatabase How do I create a database branch for testing without affecting production?
Neon's branching feature lets you create database copies instantly for testing and development.
Connecting to Neon from an application
@neondatabase How do I connect my Next.js app to a Neon database?
Connect Neon with your applications, including JavaScript frameworks like Next.js.
Automating database creation
@neondatabase Can I programmatically create a Neon database using the API or CLI?
Leverage Neon's API or CLI to automate database provisioning.
Migrating data to Neon
@neondatabase How do I migrate my existing PostgreSQL database to Neon?
Learn how to migrate your database to Neon.
By using these prompts, you can explore Neon's features directly from the chat in Visual Studio Code.