dotnet / dotnet/format

Document how to suppress formatting

Open
#795 1 comment 2 reactions 0 assignees View on GitHub
Documentation Help Wanted
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

Document how to suppress whitespace formatting for a block of code using

SomeClass.cs
```csharp
#pragma warning disable format

...

#pragma warning restore format
```

as well as, how to suppress all formatting for a file or folder by marking it as generated code using

.editorconfig
```ini
[SomeFileOrFolder]
generated_code = true
```

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.