I'm trying to get Resharper 9.x to reformat my C++/CLI code automatically on Visual Studio 2015 Enterprise. However, I came across this case which doesn't seem to make sense:
The following code:
namespace MyNamespace
{
public ref class MyClass
{
public:
MyClass();
~MyClass();
void MyMethod()
{
}
};
}
Gets reformatted to this:
namespace MyNamespace
{
public ref class MyClass
{
public:
MyClass();
~MyClass();
void MyMethod()
{
}
};
}
It would seem like each time it finds a closing curly brace, the indentation is cleared so it appears on the first column, rendering auto-formatting pretty much useless.
Is this a bug? What am I doing wrong?