Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.
/ codeformatter Public archive

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

License

Notifications You must be signed in to change notification settings

dotnet/codeformatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bca9f07 · Jul 11, 2022
Aug 3, 2018
Jun 29, 2015
Jan 8, 2015
Aug 2, 2018
Apr 2, 2020
Aug 3, 2018
Jan 28, 2016
Aug 2, 2018
Jul 11, 2022
Feb 26, 2020
Aug 3, 2018
Aug 3, 2018
Nov 11, 2016
Apr 13, 2016

Repository files navigation

CodeFormatter

NOTE: This repo is archived. The replacement is dotnet/format.

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

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.

Installation

Download binaries from GitHub Releases

Usage

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

$ .\CodeFormatter.exe
CodeFormatter <project or solution> [<rule types>] [/file:<filename>] [/nocopyright] [/c:<config1,config2> [/copyright:file]
    <rule types> - Rule types to use in addition to the default ones.
                   Use ConvertTests to convert MSTest tests to xUnit.
    <filename>   - Only apply changes to files with specified name.
    <configs>    - Additional preprocessor configurations the formatter
                   should run under.
    <copyright>  - Specifies file containing copyright header.

Contributing

We follow the same contribution process that corefx is using.

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages