You can apply the inspection to the project, solution, or a custom scope. When the bulb is clicked, there should be an option in the menu popup like 'Inspection: <inspection_name>'. There you can apply the inspection to the desired scope. Please check the screenshot:
Please ensure the appropriate rules are enabled in `File | Settings | Editor | Code Style | C# | Syntax Style | Trailing Comma`. When there is a quickfix for `Add trailing comma to conform to code style` available, there is a submenu that allows to apply this quickfix in project/solution scope.
As an additional option, you can create a custom cleanup option to apply the trailing commas rule. (see the screenshot)
Regarding `Qualify using directive`.
Would you mind clarifying what the rule do you mean? Do you mean SA1135 StyleCop rule?
Thank you for the clarification. For the custom Roslyn alanyzers, there is no way to apply a quickfix per scope, regrettably. We have this issue on our tracker and would appreciate it if you could upvote it to demonstrate the additional interest.
Should you have any other questions or difficulties, please let me know.
Hello,
You can apply the inspection to the project, solution, or a custom scope. When the bulb is clicked, there should be an option in the menu popup like 'Inspection: <inspection_name>'. There you can apply the inspection to the desired scope. Please check the screenshot:
Once you do this Dmitry Kazantsev. There is no way to apply the fix across the scope only view them.
I am trying to apply 'Add trailing comma' or 'Qualify using directive' at a project level?
Hello Jgregory,
Please ensure the appropriate rules are enabled in `File | Settings | Editor | Code Style | C# | Syntax Style | Trailing Comma`. When there is a quickfix for `Add trailing comma to conform to code style` available, there is a submenu that allows to apply this quickfix in project/solution scope.
As an additional option, you can create a custom cleanup option to apply the trailing commas rule. (see the screenshot)
Regarding `Qualify using directive`.
Would you mind clarifying what the rule do you mean? Do you mean SA1135 StyleCop rule?
Yes that is the correct style cop Rule
Hello JGregory,
Thank you for the clarification.
For the custom Roslyn alanyzers, there is no way to apply a quickfix per scope, regrettably. We have this issue on our tracker and would appreciate it if you could upvote it to demonstrate the additional interest.
Should you have any other questions or difficulties, please let me know.
Have a nice day!