Should format code even if it is hidden in conditional compilation directives under the current solution configuration
Open
Feature Request
- Dominant language
- No language data
- Stars
- 1.9k
- Forks
- 173
- Avg merge
- 10d 13h
- Merged PRs (30d)
- 1
Description
It would be nice to be able to tell dotnet-format that it should ignore any conditional compilation directives when formatting code.
Real world use-case: https://github.com/icsharpcode/ILSpy/blob/master/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Loops.cs#L568-L580
In the above code, I would like the formatter to process both branches of the `#if` directive.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.