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
 Frustrating indentation issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Feb 15 2010 :  04:01:54 AM  Show Profile  Reply with Quote
VAX 1738, VS 2008 SP1.

#define ASM_TEST __asm { __noop; }

ASM_TEST <enter>
    | <-- indented... argh!


No, I cannot edit the macros since they are part of 3rd party libraries.

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Feb 15 2010 :  09:24:54 AM  Show Profile  Reply with Quote
Do you have to type this in a specific context to get this intending problem? I have just tried typing these two lines into a cpp file and I am not getting this indenting problem.

But please remember that mostly the IDE is responsible for indenting, and you need to look at the IDE options for how the caret is indented on the next line:

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

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

znakeeye
Tomato Guru

379 Posts

Posted - Feb 15 2010 :  10:27:44 AM  Show Profile  Reply with Quote
I have "Smart" indenting. Always have.

Are you sure you typed it exactly as seen above? That is, NO semicolon or similar!

Anyway, disabling VAX does not make the problem go away. I guess it's a VC9 bug :/
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Feb 15 2010 :  11:39:11 AM  Show Profile  Reply with Quote
This is what I have typed, it looks identical to what you have posted here:



I have smart indenting turned on, and the caret is never indented for me when I press Enter.

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

znakeeye
Tomato Guru

379 Posts

Posted - Feb 15 2010 :  3:20:16 PM  Show Profile  Reply with Quote
Try it inside a constructor or any other place where it makes sense:

CMyClass::CMyClass()
{
    ASM_TEST
        |
}
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Feb 15 2010 :  7:38:32 PM  Show Profile  Reply with Quote
The #define did not make sense to me, but ASM is not something that I know about personally. I am seeing the same indenting problem in VS2008 on a machine where VA has never been installed. So it is definitely not a VA problem.

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