15 Most Common Dream Topics

Dreams are perhaps the most mysterious side of human life. Despite working on all disciplines, from philosophy to religion, from art to science, there is still a lot unknown. Although there are many…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Prettier in VS Code for Typescript

Wondering why prettier isn’t fixing your code formatting for you on save in VS Code (typescript)?

I spent a few minutes trying to figure out why this wasn’t working for me in Angular. Hopefully this helps someone not feel silly as I did when (in hindsight) the answer was pretty obvious.

The instructions for setting it up to work on save are the following in the setting.json file:

So why was this not working for Angular?

Because even though I think of it more broadly as javascript, it’s technically typescript. So you have to set the per-language name to typescript

Hopefully this simple tip will save someone a few moments of feeling silly, as did I. Cheers.

Add a comment

Related posts:

Prudently Invest in the Combination of Blockchain and Finance

Many unnecessary transaction costs and losses can be reduced if blockchain, the new technology, is combined with finance, which makes the combination of blockchain and finance possible. Nowadays…

Cold

Suddenly it became cold. The snowfall silently started during the night, and the next day paths and trees down below outside the window were covered in white. And the wind started to creep slowly…