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
 auto-indentation bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tailsu
Senior Member

37 Posts

Posted - Sep 05 2007 :  11:02:25 AM  Show Profile  Reply with Quote
Auto-indentation sometimes works poorly with 'Include bits and pieces of code' option.

When I write 'std', VA suggests (for example) '::for_each('.
Then I type a ':', so now VA suggests ':for_each('.

However Visual Studio's editor automatically indents the text to the beginning of the line, as if it was a label. Now, if I choose the ':for_each(' suggestion the line remains at the beginning of the line, unlike when I write :: which re-indents it as an expression.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 05 2007 :  6:58:22 PM  Show Profile  Reply with Quote
Interesting:

case=8631

For now the work around is to either accept VA's suggestion at a different point (after a different amount of typing), so you don't run into this problem or to tell the IDE to format the current line after you have accepted the suggestion.

In VS2005 CTRL-K, CTRL-F does this.

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