How to customize indentation of class relative to namespace and members relative to class?
I'm learning to use ReSharper (8.0.1) with Visual Studio 2013 for C# coding.
I would like to eliminate indentation of class relative to namespace and members relative to class, i.e.
namespace MyNamespace
{
class MyClass
{
public void myMethodA()
{
// implementation
}
private void _myMethodB()
{
// implementation
}
private int _myField;
}
}
The motivation being that in the case with only one namespace-level class per source file almost all the code lines begin at the 2nd indentation level which to me seems to be somewhat wasteful:
namespace MyNamespace
{
class MyClass
{
public void myMethodA()
{
// implementation
}
private void _myMethodB()
{
// implementation
}
private int _myField;
}
}
My question is how can I configure such formatting style? I could not find a way to do it using ReSharper -> Options -> Code Editing -> C# -> Formatting Style
I would like to eliminate indentation of class relative to namespace and members relative to class, i.e.
namespace MyNamespace
{
class MyClass
{
public void myMethodA()
{
// implementation
}
private void _myMethodB()
{
// implementation
}
private int _myField;
}
}
The motivation being that in the case with only one namespace-level class per source file almost all the code lines begin at the 2nd indentation level which to me seems to be somewhat wasteful:
namespace MyNamespace
{
class MyClass
{
public void myMethodA()
{
// implementation
}
private void _myMethodB()
{
// implementation
}
private int _myField;
}
}
My question is how can I configure such formatting style? I could not find a way to do it using ReSharper -> Options -> Code Editing -> C# -> Formatting Style
Please sign in to leave a comment.