tailsu
Senior Member
37 Posts |
Posted - Sep 05 2007 : 11:02:25 AM
|
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
|
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 |
|
|