Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Namespaced enum causes unwanted line indents

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
Spaceman Spiff Posted - Feb 03 2013 : 03:04:31 AM
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.






4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 23 2013 : 11:50:39 AM
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.
Spaceman Spiff Posted - Feb 15 2013 : 12:59:42 PM
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.
sean Posted - Feb 04 2013 : 9:39:02 PM
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.
feline Posted - Feb 04 2013 : 9:05:14 PM
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.

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