Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/dotnet/codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
https://github.com/dotnet/codeformatter

Last synced: about 1 month ago
JSON representation

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles

Lists

README

        

# CodeFormatter

***NOTE: This repo is archived. The replacement is [dotnet/format](https://github.com/dotnet/format).***

CodeFormatter is a tool that uses Roslyn to automatically rewrite the source to
follow our coding styles, which are [documented here][corefx-coding-style].

[corefx-coding-style]: https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md

## Prerequisites

In order to build or run this tool you will need to have Microsoft Build Tools
2015 installed. This comes as a part of [Visual Studio 2015](https://www.visualstudio.com/downloads/download-visual-studio-vs).

## Installation

Download binaries from [GitHub Releases](https://github.com/dotnet/codeformatter/releases)

## Usage

In order get the usage, simply invoke the tool with no arguments:

```
$ .\CodeFormatter.exe
CodeFormatter [] [/file:] [/nocopyright] [/c: [/copyright:file]
- Rule types to use in addition to the default ones.
Use ConvertTests to convert MSTest tests to xUnit.
- Only apply changes to files with specified name.
- Additional preprocessor configurations the formatter
should run under.
- Specifies file containing copyright header.
```

## Contributing

We follow the same contribution process that
[corefx is using][corefx-contributing].

[corefx-contributing]: https://github.com/dotnet/corefx/wiki/Contributing