Open sharwell opened 10 years ago
Yes, I was thinking the same thing but I'm really not sure how to detect user's preferred style.
There is no setting for the preferred style within the IDE. However, if another analyzer is enabled for the project which reports SA1503 (link above) as a warning or higher, you can assume the user wishes to include braces in the output.
It'd be nice if curly braces were omitted from the code fix output any time SA1503 is not enabled in the same project. At this time I do not know of a way to detect if an analyzer for that is included and enabled.