小试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

posted @ 2010-04-04 23:09  Gang.Wang  阅读(494)  评论(0编辑  收藏  举报