Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Paste auto-indent bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

NeoEGM
New Member

4 Posts

Posted - Mar 13 2008 :  11:24:34 PM  Show Profile  Reply with Quote
If you try to paste the following C++ code:


int a, b;

for (int i = 0; i < 10; i++)
	if (i % 2)
	{
		a++;
	}

b = a*3;


It will get pasted like this:


int a, b;

for (int i = 0; i < 10; i++)
	if (i % 2)
	{
		a++;
	}

	b = a*3;


The last indent shouldn't be there...

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 14 2008 :  10:13:47 AM  Show Profile  Reply with Quote
In VS2005 this is an IDE bug. Change the formatting of the code, then select it and press CTRL-K, CTRL-F to get the IDE to format it, and you see the same indenting.

VA simply asks the IDE to format the code, rather than trying to do the code formatting its self.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000