Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Premature formatting on for statement

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
DrB Posted - Sep 11 2006 : 5:20:39 PM
I'm using C# in VS2005 with build 1534.

When I type something like:

for (int i = 0; i < 10;

As soon as I hit that second semi-colon, an automatic formatting takes place. The code below the for statement gets indented. Very annoying.

Thanks!
3   L A T E S T    R E P L I E S    (Newest First)
jpizzi Posted - Sep 13 2006 : 12:28:58 AM
I entered that code in a .cs file, and it does happen for me just like you say. The only thing is, if I disable VA, it still happens.

Sounds like it is the IDE. Do you have some indication otherwise?
DrB Posted - Sep 12 2006 : 10:27:31 AM
I just tried it in a test .cs file with nothing in it but the following (the cursor is just after the 10 in the for statement as I'm typing it in):


class Test1
{
    public double A()
    {
        bool b = true;

        for (int i = 0; i < 10)

        if (b)
        {
            System.Console.WriteLine("Test");
        }

        return 0.0;
    }
}


As soon as I type the ";" after the 10, the code looks like this:


class Test1
{
    public double A()
    {
        bool b = true;

        for (int i = 0; i < 10; )

            if (b)
            {
                System.Console.WriteLine("Test");
            }

        return 0.0;
    }
}
jpizzi Posted - Sep 11 2006 : 11:39:36 PM
This is not happening for me. Can you look at the code above this to see if there is something (a syntax error, or a missing semicolon, perhaps) that could be confusing the parser?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000