Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [1812] Indent problem

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
uox Posted - Feb 15 2010 : 1:14:32 PM
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.
6   L A T E S T    R E P L I E S    (Newest First)
support Posted - Mar 08 2010 : 04:14:11 AM
case=39891 is fixed in build 1814
This was fixed without needing to remove the ':' from the public:/private:/protected: VA Snippets
sean Posted - Feb 17 2010 : 4:11:59 PM
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
uox Posted - Feb 17 2010 : 11:21:06 AM
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.
feline Posted - Feb 16 2010 : 08:20:01 AM
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.
uox Posted - Feb 15 2010 : 8:49:47 PM
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.
feline Posted - Feb 15 2010 : 7:17:51 PM
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.

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