是否有用于重新格式化C#代码的工具? [英] Is there a tool for reformatting C# code?

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

问题描述

我正在寻找一个(最好是)命令行工具,该工具可以重新格式化目录树上的C#源代码。理想情况下,我应该能够自定义格式。如果该工具可以在 Mono (或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 重新格式化您的代码。它支持的格式设置选项仍然非常有限,但是它可以处理整个目录,并且是命令行工具。另外,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#代码的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆