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
 Surround Text with {}
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BrianCBecker
New Member

4 Posts

Posted - Feb 27 2007 :  9:57:17 PM  Show Profile  Reply with Quote
Hi,

I have been frustrated by the behavior of "Surround selection on {". Often, I will have a chunk of code I want to surround in an if statement or expand a single line if statement to multiple lines. When I select the line and type "{", VAX almost always places the second bracket with the wrong indention. It seems to depend partly on the direction I highlighted the text and partly on some random condition. Here is an example to demonstrate:

(My commends in red)

For larger chunks of selected text, the second bracket is not indented at all (just appears on the first column of the line). This unreliable behavior renders the surround feature next to useless because you must manually fix it afterwards.

VAX/OS Info:

VA_X.dll file version 10.3.1548.0 built 2007.02.23
Licensed to:
VA X: [email omitted] (1-user license) Support ends 2007.10.08
VAOpsWin.dll version 1.3.4.6
VATE.dll version 1.0.6.0
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor

After finding the bug report guidelines, I forgot to mention that I am using Visual Studio 2005 C++ Service Pack 1 and I have Comment Reflower (http://commentreflower.sourceforge.net) and Project Line Counter (http://www.wndtabs.com/products/project_line_counter/line_counter_overview.html) installed.

Thanks for your time.

Sincerely,
Brian C. Becker @ www.BrianCBecker.com

Edited by - BrianCBecker on Feb 27 2007 10:14:03 PM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Feb 28 2007 :  09:16:27 AM  Show Profile  Reply with Quote
Unfortunately this is a known problem. It is in our list of things to fix, but I do not know when this will be fixed.

case=1521

For now I recommend selecting left to right, or preferably whole lines top to bottom. Sometimes having the caret at the start of a selected block, rather than the end, can confuse VA. The fact we are sneaking around behind the IDE does not help.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 10 2008 :  01:28:12 AM  Show Profile  Reply with Quote
case=1521 is fixed in build 1632
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