Pretty TypeScript Errors is a Visual Studio Code extension that reformats TypeScript diagnostics into clearer, syntax-highlighted messages. It targets complex type errors that are hard to read in the default UI.
Overview
The extension improves how TypeScript errors appear inside VS Code when types grow large or heavily nested. It applies theme-aware syntax highlighting to type fragments in messages and can add navigation affordances next to types in the output.
Supported contexts include Node and Deno TypeScript reporting in .ts files, JSDoc type errors in JavaScript, framework errors in TSX and MDX, and Astro, Svelte, and Vue when TypeScript is enabled. Ember and Glimmer diagnostics from Glint in template-related files are also covered.
Install from the VS Code marketplace by searching for pretty-ts-errors or via the documented install command. Optional setup steps describe how to hide original errors or adjust copy behavior around VS Code markdown limitations.
The author notes custom TextMate grammar work and styling workarounds because error payloads include non-valid TypeScript type fragments and because VS Code restricts some markdown styling choices.
Key features
- Syntax-highlighted types in errors
- Light and dark theme support
- Jump to type declarations
- Links to external error explainers
- Multi-framework TypeScript support
- JSDoc error highlighting
- Glint template error support
- VS Code marketplace distribution
Use cases
- Debugging complex TypeScript types
- Reading React or Vue TS errors
- Working with Deno TypeScript projects
- Understanding JSDoc type failures
- Teaching TypeScript error messages