format
format copied to clipboard
Should format code even if it is hidden in conditional compilation directives under the current solution configuration
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.
Has there been any update on this? I've got a similar use-case but for a Unity specific library for both iOS and Android which has code inside #if UNITY_IOS
and #if UNITY_ANDROID
which isn't being formatted right now
yes, please fix the issue
Any update on this?