apps/docs/content/docs/orm/more/dev-environment/editor-setup.mdx
This page describes how you can configure your editor for an optimal developer experience when using Prisma ORM.
If you don't see your editor here, please open a feature request" and ask for dedicated support for your editor (e.g. for syntax highlighting and auto-formatting).
You can install the official Prisma VS Code extension. It adds extra capabilities to VS Code when developing applications with Prisma ORM:
schema.prismaCtrl+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:or use the Prettier plugin for Prisma
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
},
F2 and then type the new desired name and press Enter@map or @@map on the schema:::tip
If you're using VS Code, you can use VS Code agent mode to enter prompts such as “create Postgres database” or “apply schema migration” directly in the chat. The VS code agent handles all underlying Prisma CLI invocations and API calls automatically. See our VS Code Agent documentation for more details.
:::
Note: Community projects are not maintained or officially supported by Prisma and some features may by out of sync. Use at your own discretion.
You can get IDE-style autocompletion for Prisma CLI using inshellisense. It supports: bash, zsh, fish, pwsh, powershell (Windows Powershell).
To install, run:
npm install -g @microsoft/inshellisense