How do I get ReSharper to require brackets if the using statement is not nested with statements?

In ReSharper, you can require that Using statements have bindings if it is a single line using a statement or multi-line.
Options => Code Editing => C# => Code Style => Braces => In single-statement "using"

Is it possible to require brackets for a single Using statement as follows:

 using (var disposableA = new DisposableA()) { //single line using disposableA... } 

but does not require parentheses when a single statement is a nested Using statement?

 using (var disposableB = new DisposableB()) using (var disposableC = new DisposableC()) { //code that uses disposableB & disposableC... } 

I do not want to allow this kind of instruction in code

 using (var disposableD = new DisposableD()) //single line using disposableD... 
+5
source share

All Articles