本文介绍了是否有用于重新格式化C#代码的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个(最好是)命令行工具,该工具可以重新格式化目录树上的C#源代码。理想情况下,我应该能够自定义格式。如果该工具可以在(或Linux)上运行,则可以得到加分。 / p>

I am looking for a (preferably) command-line tool that can reformat the C# source code on a directory tree. Ideally, I should be able to customize the formatting. Bonus points if the tool can be run on Mono (or Linux).

推荐答案

您也可以尝试重新格式化您的代码。它支持的格式设置选项仍然非常有限,但是它可以处理整个目录,并且是命令行工具。另外,NArrange在Mono下运行。

You could also try NArrange to reformat your code. The formatting options it supports are still pretty limited, but it can process an entire directory and is a command-line tool. Also, NArrange runs under Mono.

这篇关于是否有用于重新格式化C#代码的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 11:42
查看更多