VOOZH about

URL: https://marketplace.visualstudio.com/items?itemName=Prisma.prisma

⇱ Prisma - Visual Studio Marketplace


Skip to content
👁 Image
Sign in
Visual Studio Code>Programming Languages>PrismaNew to Visual Studio Code? Get it now.
👁 Prisma

Prisma

Adds syntax highlighting, formatting, auto-completion, jump-to-definition and linting for .prisma files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Prisma VS Code Extension

Adds a database management UI, syntax highlighting, linting, code completion, formatting, jump-to-definition and more.

Features

Visual database management UI

The Prisma VS Code extension features a database managent UI that you can access via the Prisma logo in the sidebar. It allows to manage Prisma Postgres instances:

  • Authenticate with the Prisma Console
  • Create and delete Prisma Postgres instances (remote & local)
  • View and edit data via an embedded Prisma Studio
  • Visualize your database schema

Editor support

  • Syntax highlighting of schema.prisma
  • Linting
    • Diagnostic tools are used to surface errors and warnings in your schema file as you type.
  • Code Completion
    • Completion results appear for symbols as you type.
    • You can trigger this manually with the Ctrl+Space shortcut.
  • Documentation help
    • Documentation of a completion result pops up as completion results are provided.
  • Quick info on hover
    • Documentation Comments (///) of models and enums appear anywhere you hover over their usages.
  • Go to Definition
    • Jump to or peek a model or enum's declaration.
  • Formatting
    • Format code either manually or on save (if configured).
      • To automatically format on save, add the following to your settings.json file:
        "editor.formatOnSave": true
        
      • To enable formatting in combination with prettier, add the following to your settings.json file:
        "[prisma]": {
         "editor.defaultFormatter": "Prisma.prisma"
        },
        
        or use the Prettier plugin for Prisma
  • Rename
    • Rename models, enums, fields and enum values
      • Click into the model or enum, press F2 and then type the new desired name and press Enter
      • All usages will be renamed
      • Automatically applies @map or @@map on the schema
  • Quick-fixes
    • Quickly fix typos in model and enum names
    • Create new models and enums with a single click

Preview

Contributing

Read more about how to contribute to the Prisma VS Code extension

Telemetry

This extension collects telemetry data to help us better the usage of the extension. You can read more about that in Prisma's documentation. The extension respects:

  • the telemetry.enableTelemetry setting in VS Code (deprecated since v1.61).
  • the telemetry.telemetryLevel setting in VS Code (see docs)

If you want to opt out of telemetry you can either, in your VS Code settings:

  • set "telemetry.enableTelemetry": false
  • set "telemetry.telemetryLevel": "off" (or "crash" or "error")

Build information

This is for Prisma CLI 7.9.0-dev.4.

Security

If you have a security issue to report, please contact us at security@prisma.io