dotnet / dotnet/sdk

Dotnet format should take a single file

Open
#43,056 5 comments 13 reactions 0 assignees View on GitHub
Area-Format untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Description of the problem

Dotnet format is fantastic. We use it to check all the .editorconfig rules have been followed in our builds.

But really I want a version of prettier that I have for Typescript. So that I can run dotnet format on the open file every time I press 'Save', and so I could run it on just modified files as a pre-commit hook (rather than having to run it on the whole solution).

### Describe the solution I'd like
`dotnet format [filename|filename list|file glob pattern]`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.