tconkling
New Member
2 Posts |
Posted - Sep 13 2005 : 6:07:22 PM
|
I really like the VA feature that inserts a closing brace/bracket/paren when the corresponding opening symbol is typed. However, I find that this feature frequently doesn't work as expected.
For example, if I type the following:
int test() {
VA will insert a closing brace for me, resulting in this:
int test() { }
So far so good. If I type something into the body of "test" that doesn't contain any parentheses/braces/brackets, and then type the closing brace myself, VA will remove the brace that it inserted. I'll end up with something like this:
int test() { return 10; }
However, if the body of "test" contains any parentheses/braces/brackets, VA will fail to remove the brace, so I'll end up with something like this:
int test() { return foo(); } }
And then I'll have to manually delete the extra closing brace. This is a pain, especially when I find myself doing it like 100 times/day.
Is this a bug or a feature?
Thanks, Tim |
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Sep 13 2005 : 6:23:17 PM
|
unfortunately its a feature. as soon as you type a bracket VA will no longer auto delete the close bracket it inserted. the problem is that in the general case VA cannot reliably determine if or when it should delete the closing bracket, so by doing this it is consistent, which is the lesser or two evils. |
zen is the art of being at one with the two'ness |
|
|