Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Prettier equivalent for Visual Studio 2017? (Or a way to set up something similar)

I recently started a job at a company who's product is built in ASP.Net. In the past I've used the Prettier extension in VS Code with my teams to keep everyone's styles uniform. I've searched for some similar extension in the VS MarketPlace but I can't find anything remotely close.

I know I can set up an editor config file but it doesn't cover nearly the same level of options as having a shared lint file that everyone uses. I know I can change the text editor options under tools but that only updates my settings.

What I really want is to be able to have a few global lint/config files in the solution that will apply styles to a file on save so everyone's formatting is consistent. If anyone has experience setting up something similar your thoughts/experience would be tremendously helpful. Thanks!

like image 582
Tony Cimaglia Avatar asked Apr 04 '19 00:04

Tony Cimaglia


1 Answers

Yes! You can. It only works for JS, but you can find the installation instructions here.

(Taken from official docs)

For support with other languages, you can use this extension.

like image 78
Luke Vanzweden Avatar answered Oct 20 '22 01:10

Luke Vanzweden