Ryan Santos
Ryan Santos

Reputation: 387

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

Upvotes: 3

Views: 2166

Answers (1)

Ryan Santos
Ryan Santos

Reputation: 387

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.

Upvotes: 3

Related Questions