user967451
user967451

Reputation:

How to pretty print clean TypeScript errors in VS Code?

I find the inline error popup in VS Code difficult to read. There are no line breaks and there is no syntax highlighting to make the structure of a type in the diagnostic message easier to understand. Is there a way to get either of those things?

enter image description here

Upvotes: 10

Views: 2250

Answers (2)

Hugo Aboud
Hugo Aboud

Reputation: 472

Here's a very promising solution, released a week ago:

TypeScript Error Translator

ts-error-translator

GitHub: https://github.com/mattpocock/ts-error-translator

Upvotes: 3

Currently, it is not supported.

Read more about it here: https://github.com/microsoft/vscode/issues/54272

Upvotes: 3

Related Questions