You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
NeoEGM
Posted - Mar 13 2008 : 11:24:34 PM 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...
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - Mar 14 2008 : 10:13:47 AM 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.