简体   繁体   English

Visual Studio 2017 是否有更漂亮的等价物? (或一种设置类似内容的方法)

[英]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.我最近在一家产品是用 ASP.Net 构建的公司开始了一份工作。 In the past I've used the Prettier extension in VS Code with my teams to keep everyone's styles uniform.过去,我和我的团队一起使用 VS Code 中的 Prettier 扩展来保持每个人的风格统一。 I've searched for some similar extension in the VS MarketPlace but I can't find anything remotely close.我在 VS MarketPlace 中搜索了一些类似的扩展,但我找不到任何远程关闭的东西。

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.我知道我可以设置编辑器配置文件,但它涵盖的选项级别几乎与每个人都使用的共享 lint 文件相同。 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.我真正想要的是能够在解决方案中包含一些全局 lint/config 文件,这些文件将在保存时将样式应用于文件,因此每个人的格式都是一致的。 If anyone has experience setting up something similar your thoughts/experience would be tremendously helpful.如果有人有设置类似内容的经验,您的想法/经验将非常有帮助。 Thanks!谢谢!

Yes!是的! You can.你可以。 It only works for JS, but you can find the installation instructions here .它仅适用于 JS,但您可以在此处找到安装说明。

(Taken from official docs ) (取自官方文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM