Jump to content

  • Log In with Google      Sign In   
  • Create Account

Weird issue with VS 2012.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 MarkS   Prime Members   -  Reputation: 882

Like
0Likes
Like

Posted 07 January 2013 - 05:59 PM

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?!


Edited by MarkS, 07 January 2013 - 06:05 PM.


Sponsor:

#2 MarkS   Prime Members   -  Reputation: 882

Like
0Likes
Like

Posted 07 January 2013 - 06:12 PM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS