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
 [1812] Indent problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

uox
New Member

7 Posts

Posted - Feb 15 2010 :  1:14:32 PM  Show Profile  Reply with Quote
VAX 1812 VC6

This is a problem of auto indent.

sample code

////////////////////////
class CUIStatic
{
   public: // this line should align with the previous "{"
        CUIStatic(); // this line should only have one level indent.

};
///////////////////////

The problem only occurs on input code directly, and doesn't happen when copying and pasting code.

No such probelm at build 1738.

Edited by - uox on Feb 15 2010 1:16:38 PM

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Feb 15 2010 :  7:17:51 PM  Show Profile  Reply with Quote
So far I cannot reproduce this problem here. Can you check that you still have this VC6 setting set like this:

VC6 tools menu -> Options -> Tabs -> Auto indent = Smart

This is set on both machines where I have tested this with the two versions of VA, and I am not seeing the problem.

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

uox
New Member

7 Posts

Posted - Feb 15 2010 :  8:49:47 PM  Show Profile  Reply with Quote
The setting is no problema, and no other addons will intefere with vax.
If I disable vax, the auto indent works perfectly.

Normally, after I input the colon symbol after some keywords such like "public" or "private", the indent should automatically decrease one level. However, this version of vax does not. In addition, the problem is same when I tested this function under vs2008.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Feb 16 2010 :  08:20:01 AM  Show Profile  Reply with Quote
Can you please export your VA and VS2008 settings and send them to me:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

I can then import them here and see if I can reproduce the problem.

Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

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

uox
New Member

7 Posts

Posted - Feb 17 2010 :  11:21:06 AM  Show Profile  Reply with Quote
I'm sorry. I made a mistake at the problem description.

The reproducution procedure like this:


class CTest
{
  p // In the class scope, when i input a single "p", the auto suggeestion listbox appears,
          // and it includes several lines such like "public:" or "protected"
          // However, if i select these items which have a colon at the end, the problem happens. The auto indent does not work.
          // if I input all characters manually, there is no problem.
};


The setting file was sent.

Edited by - uox on Feb 17 2010 11:30:45 AM
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 17 2010 :  4:11:59 PM  Show Profile  Reply with Quote
The problem is that the suggestions for public, protected and private include the ':' character. Typing that character triggers the IDE to fix indentation. But because VA inserts it, there is no trigger for the indent. You can remove the ':' characters from the suggestions by editing the "SuggestionsForType class" snippet.

We will remove the ':' from the default suggestions. case=39891
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 08 2010 :  04:14:11 AM  Show Profile  Reply with Quote
case=39891 is fixed in build 1814
This was fixed without needing to remove the ':' from the public:/private:/protected: VA Snippets

Whole Tomato Software, Inc.
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