I don't know if this is the right forum, so feel free to move it.
Let's say that I create a class and the word "class" is part of the class name, not all that unusual:
class test_class{
public:
test_class(int _test){test = _test;};
~test_class(){};
int GetTest() const {return(test);}
private:
int test;
};
When I try to type in an instance of the class in the code, once I type "class" and press space or tab, VS does this:
void TestFunc(void)
{
test_class MyClass
{
public:
MyClass();
~MyClass();
private:
};
MyClass::MyClass()
{
}
MyClass::~MyClass()
{
}
}
"MyClass" and everything that follows is automatically inserted. If I change "class" in "test_class" to anything else, this doesn't happen. How do I get this to stop?!