小试NArrange

本文介绍了一款用于代码规范化的工具及其使用方法。通过命令行操作可以实现代码的整理、备份及还原等功能,有助于提高代码质量和团队协作效率。

看到这个工具后,就想到自己平时的代码可以用一下这个东西,就下载后试了一下,是用来代码规范的工具,

命令行运行有:

narrange-console <input> [output] [/c:configuration]
        [/b] [/r] [/t]


input   Specifies the source code file, project, solution or 
        directory to arrange.

output  For a single source file, specifies the output file
        to write arranged code to.
        [Optional] If not specified the input source
        file will be overwritten.

/c      Configuration - Specifies the XML configuration file to use.
        [Optional] If not specified the default
        configuration will be used.

/b      Backup - Specifies to create a backup before arranging
        [Optional] If not specified, no backup will be created.
        Only valid if an output file is not specified
        and cannot be used in conjunction with Restore.

/r      Restore - Restores arranged files from the latest backup
        [Optional] When this flag is provided, no files will be arranged.
        Only valid if an output file is not specified
        and cannot be used in conjunction with Backup.

/t      Trace - Detailed logging

 
在VS中设置一下就可以用了

VSExternalTool

It is also recommended to setup a restore command using the same parameters, replacing /b with /r. However, be careful when using re

VSExternalToolRestore

转载于:https://www.cnblogs.com/GnagWang/archive/2010/04/04/1704438.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值