I've been using Visual Assist (in Visual Studio 2019) for a while now, and am loving what it's giving me.
One thing that does bug me, though, is when I use Create Implementation on a class method.
If I have the following in my header:
namespace MyNamespace
{
class MyClass
{
MyClass();
};
}
And then in my .cpp:
#include "MyClass.h"
using namespace MyNamespace;
And then I right-click on MyClass()
in my header, and select "Create Implementation", it creates the following in my .cpp:
MyNamespace::MyClass()
{
}
What would be really useful would be if it could check the .cpp for a "using namespace", and if one exists, for it not to prepend the namespace onto the created implementation. This could maybe be an option, as people may prefer the current workflow.
I believe that this is also the reason why, if I have a number of functions already in my .cpp that don't have the namespace on, if I get it to automatically create a new function that I've declared, it adds it at the bottom, rather than in the appropriate place based on where I've put the declaration in the header. I'm guessing that it's looking for definitions in the header with the namespace on.
Thanks