Weird issue with VS 2012.

Started by
0 comments, last by MarkS_ 11 years, 4 months ago

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()
	{
	}
}

blink.png dry.png


"MyClass" and everything that follows is automatically inserted. angry.png If I change "class" in "test_class" to anything else, this doesn't happen. How do I get this to stop?!

Advertisement

Never mind. it was the "Code Snippet Manager". I didn't request this! angry.png It stopped once I deleted the stored code snippets.

This topic is closed to new replies.

Advertisement