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 indents on comment selection
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ian
Starting Member

1 Posts

Posted - Dec 10 2004 :  09:46:48 AM  Show Profile
(c# - Visual Studio.NET 2003 (VA_X.dll file version 10.1.1287.0))


When you select multiple lines of code and hit * to comment out the selection, all the lines apart from the first get indented by about 3 extra tabs. And worse, when you hit * again to uncomment out the lines, every line recieves an extra 3 or so tabs.

You can reproduce this as follows: Enter the following code (c#) select from immediately before the 'f' in 'for' up to the end of the last curly bracket, and then then comment the selection by hitting * or using the context menu:

for (int i=0; i<10; i++)
{
    // blah
}    

When you hit * you get all these extra indentations:

/*
           for (int i=0; i<10; i++)
                        {
                            // blah
                        } */

Then when you hit * again to uncomment, you get even more:

            for (int i=0; i<10; i++)
                                    {
                                        // blah
                                    } 

This has been happening for at least the last 6 months worth of visual assists...

support
Whole Tomato Software

5566 Posts

Posted - Dec 11 2004 :  1:15:25 PM  Show Profile
case=469

Workaround is to select whole lines. Use the selection margin at the right.
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