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
 Faulty closing braces in string
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gencha
Junior Member

24 Posts

Posted - Jul 11 2009 :  4:27:32 PM  Show Profile  Reply with Quote
Given the following line:
Regex PriceClean = new Regex( @"(\\d{1,6},(\\d{2}|-)" );

If I place the cursor after the - in the regular expression and type the additional ) which is missing, VAX will jump over the existing one instead of adding an additional one.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 12 2009 :  7:41:40 PM  Show Profile  Reply with Quote
This is because Visual Assist puts closing parentheses automatically: you type (| and get (|) where | represents the caret. After that typing Apple+Banana)| will result in (Apple+Banana)| instead of (Apple+Banana)|). So Visual Assist overwrites the ) to avoid unnecessary closing parentheses. So it tries to figure out what to do, but this isn't always unambiguous.

You can turn off

VA Options -> Advanced -> Corrections -> Insert () and closing })]'"

as a workaround if overwriting ) bothers you.

Edited by - accord on Jul 12 2009 7:56:49 PM
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