Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Weird issue with VS 2012.

4: Adsense

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   Members   

3465
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.


#2 MarkS   Members   

3465
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.