schema.prisma
Ctrl+Space
shortcut.///
) of models and enums appear anywhere you hover over their usages.settings.json
file:
"editor.formatOnSave": true
prettier
, add the following to your settings.json
file:
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
},
or use the Prettier plugin for PrismaF2
and then type the new desired name and press Enter
@map
or @@map
on the schemaSyntax highlighting eases visual comprehension of the Prisma schema.
Formatting ensures consistent indentation of your models for better readability.
Linting shows inline errors in the schema, and autocompletion assists in defining the correct type.
Contextual suggestions assist in defining field types, models, and relations while formatting automatically defines back relations.
Easily navigate definitions, i.e. models in the Prisma schema.
Read more about how to contribute to the Prisma VS Code extension
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:
telemetry.enableTelemetry
setting in VS Code (deprecated since v1.61).telemetry.telemetryLevel
setting in VS Code (see docs)If you want to opt out of telemetry you can either, in your VS Code settings:
"telemetry.enableTelemetry": false
"telemetry.telemetryLevel": "off"
(or "crash" or "error")This is for Prisma CLI 6.0.0.
If you have a security issue to report, please contact us at security@prisma.io