繁体   English   中英

有没有办法在 Visual Studio 中自动格式化所有源代码缩进?

[英]Is there a way to automatically format all of your source code indentation in Visual Studio?

我知道所有关于“保存时格式化”和 ctrl+k+d 的知识,但我想在 1 次提交中将我的所有源代码从 2 个空格格式化为 4 个空格。

是否有任何扩展或工具可以让 Visual Studio 为所有解决方案/项目做到这一点? (我有更清晰的!)

谢谢!

显然 resharper 可以为所有解决方案做到这一点,您只需 select 解决方案并单击以下在此处输入图像描述

暂无
暂无

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

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