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
 Extra closing [paren/brace/bracket] not deleted
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tconkling
New Member

2 Posts

Posted - Sep 13 2005 :  6:07:22 PM  Show Profile
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
18939 Posts

Posted - Sep 13 2005 :  6:23:17 PM  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000