Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pretty print clean TypeScript errors in VS Code? [closed]

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


2 Answers

Currently, it is not supported.

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

like image 67
Dávid Bíró Avatar answered May 02 '26 23:05

Dávid Bíró


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

TypeScript Error Translator

ts-error-translator

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

like image 30
Hugo Aboud Avatar answered May 02 '26 22:05

Hugo Aboud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!