dotnet / dotnet/format

Apply formatting incrementally

Open
#1,763 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

`dotnet format` is currently difficult to enable on a large existing project in an incremental way that creates small, reviewable change sets. The most notable example is the `whitespace` command, which cannot be broken down any further (unlike specific diagnostics which can be fixed individually), and which apples all whitespace formatting rules regardless of whether they are explicitly configured in the `.editorconfig` file or not.

Two changes that would make this process much easier:

1. Break out "whitespace" changes into individual categories (e.g. indent, newline, brace style, etc) that can be fixed individually in the same way that diagnostics can.
1. Add the capability (either a new command or an option for existing commands) to only fix things that are explicitly configured in the `.editorconfig`.

These changes would significantly improve the incremental implementation experience.

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.