Prettify TypeScript++Read complex TypeScript types in your hover, including the original definition that produced them. VS Code Marketplace · Report a bug · Changelog Preview: tested with TypeScript 5.9 and 6.0 using VS Code's JavaScript TypeScript language service. TypeScript 7 native preview is not supported. See compatibility for the tested scope. An independent fork of Prettify TypeScript, created by Myles Murphy. The original MIT licence and attribution are retained.
InstallInstall Prettify TypeScript++ by Ethan Sarif-Kattan from the Marketplace, or run:
If the original Prettify TypeScript extension is installed, disable it for this workspace to avoid competing prettified hovers. Keep VS Code's built-in TypeScript language features enabled. Hover a type or value in a TypeScript, JavaScript, TSX, JSX or Vue file. The popup can show:
If an already-open project still uses the previous plugin, run TypeScript: Restart TS Server when it is convenient to interrupt language features. An installation on disk does not prove an existing server reloaded it. What changes
Source previews stop at 20 lines or 1,500 characters. Max Characters can shorten each preview further. Identical, ambiguous or unsupported source is omitted, including merged interfaces, inferred values, narrowed annotations, class/function bodies, JSDoc and generated Vue source. The compiler still decides which values are valid. With Commands and settingsThe editor context menu and Command Palette provide Copy Prettified Type, Copy Fully Prettified Type and Toggle Preview. Source text is not included in either Copy command. Search Settings for Prettify TypeScript++ to control depth, property/union limits, character limits, private fields, generic arguments and shared union fields. Settings and commands are separate from the original extension. Compatibility
When reporting a problem, include your VS Code and TypeScript versions, relevant extension settings and a small reproducible type. Remove private code and credentials before posting it. Build and testUse Node 24 and the pnpm version declared in
The editor test guide covers provider, language and installed-package checks. The release guide describes packaging, Marketplace verification and updates. Upstream and licenceForked from Prettify TypeScript v1.0.2 ( This fork is maintained independently by Ethan Sarif-Kattan. It keeps its own extension ID, plugin, commands, settings and request protocol. Improvements suitable for the original project can also be contributed upstream. |
