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

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

问题描述

我要寻找一个(最好)的命令行工具,可以重新在目录树中的C#源代码。理想情况下,我应该能够自定义格式。奖励积分,如果该工具可以在单声道(或Linux)上运行。

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单下运行。

A bit late coming across this... 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天全站免登陆