Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Paste auto-indent bug

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000