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
 Namespaced enum causes unwanted line indents
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Spaceman Spiff
New Member

2 Posts

Posted - Feb 03 2013 :  03:04:31 AM  Show Profile  Reply with Quote
Using VS 2005 (fully updated), and VAX 1925, though this bug has been present for a number of recent builds.

If I have a enum encased in a namespace (technique used to simulate c++0x enum classes on older compilers), in code when I type the scope operator for an enum value, the entire line gets shifted right as if the entire line was selected and the <tab> key was pressed.

example code:

in .h file:

namespace ArgType
{
	enum Type
	{
		INVALID	= -1,
              ...
        };
};


then in the .cpp I am typing:

switch ( m_type )
    {
	case ArgType::INVALID ....


The *moment* I type the second ':', the whole line will shift to the right/ indent.

This is really annoying and messes up the code formatting.

Let me know if more info is needed to help.






feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Feb 04 2013 :  9:05:14 PM  Show Profile  Reply with Quote
So far I am not able to reproduce this. When I type the First ":" the indenting changes, but it changes back again when I type the second ":" in the cpp file.

What do you have:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Tabs -> Indenting =

set to? I have this set to smart.

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 04 2013 :  9:39:02 PM  Show Profile  Reply with Quote
With Smart indent, the line shifts back to the left on the third colon (:) which is required for the case statement. This is a feature of Visual Studio, not Visual Assist.
Go to Top of Page

Spaceman Spiff
New Member

2 Posts

Posted - Feb 15 2013 :  12:59:42 PM  Show Profile  Reply with Quote
My editor settings are block indent, insert spaces. The behavior toggles on/off when I activate/disable VaX.

I'll try and get more info to you shortly.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Feb 23 2013 :  11:50:39 AM  Show Profile  Reply with Quote
Can you please export your VA and IDE 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
  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