Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you Format a Typescript Document in Visual Studio Code?

I tried a few different plugins but can't manage to find a way to properly format the same way sublime can. Example result after formatting. I'd like to keep the properties in the same line if possible. Thanks.

VScode

enter image description here

Sublime enter image description here

like image 285
Ryan Santos Avatar asked Mar 30 '26 17:03

Ryan Santos


1 Answers

Ok my bad! It was a plugin conflicting with the editor's own formatting tool. I uninstalled plugins one by one and found that the beautify plugin was the issue. Turns out VScode is pretty good out of the box. I used Sublime for a while and anytime I installed it I always went straight for the prettifiers, beautifiers, etc. Force of habit I guess.

like image 86
Ryan Santos Avatar answered Apr 02 '26 02:04

Ryan Santos



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!