Skip to main content
Version: Next

Editor Setup

note

This page assumes you have already installed Wasp. If you do not have Wasp installed yet, check out the Quick Start guide.

Wasp Spec files are TypeScript files, so editor support comes from your editor's regular TypeScript tooling.

TypeScript support​

Use any editor with TypeScript language service support (VS Code, Zed, etc.), this gives you:

  • type checking and diagnostics for main.wasp.ts
  • autocompletion for @wasp.sh/spec functions and options
  • go to definition for reference imports
  • import path checks for files in src

For schema.prisma, install the Prisma extension for VS Code or the equivalent Prisma extension for your editor.

If your editor reports stale type or import errors after changing Wasp files, restart the TypeScript server. In VS Code, open the command palette and run "TypeScript: Restart TS Server."