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
 va x : overrides VS6's indent closing brace option
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

elenzil
Junior Member

13 Posts

Posted - Aug 08 2005 :  3:38:50 PM  Show Profile
i know i'm in a minority,
but i do indent closing braces,
so i appreciate visual studio 6's "indent closing brace" option.
(options | tabs)

unfortunately, VA X overrides this option
with non-indented closing braces.

anyone know a work-around ?

orion

elenzil
Junior Member

13 Posts

Posted - Aug 08 2005 :  3:40:29 PM  Show Profile
(VA_X.dll file version 10.1.1418.0 built 2005.06.24)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18995 Posts

Posted - Aug 08 2005 :  3:52:19 PM  Show Profile
what are you doing? using VC6 and VAX 1418 i have just turned on this option and entered the rather "helpful" code:


    while(1 < 2)
    {
        }

and the closing brace was left indented just as the IDE options said it should be.

zen is the art of being at one with the two'ness

Edited by - feline on Aug 08 2005 3:54:06 PM
Go to Top of Page

elenzil
Junior Member

13 Posts

Posted - Aug 08 2005 :  5:02:01 PM  Show Profile
hi, thanks for the reply.

aha:

the problem only happens when the opening brace is on the same line as the conditional.

eg


    // typing "while (1 < 2) {<CR>" yields:
    while (1 < 2) {
        // cursor is here.
    }

    // whereas typing "while (1 < 2)<cr>{" yields:
    while (1 < 2)
      {// cursor is here
      }


- so i guess it's not really overriding the VC6 setting,
since VC6 doesn't insert closing braces for you at all,
but it is ignoring the VC6 setting in that situation.

Edited by - elenzil on Aug 08 2005 5:04:50 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18995 Posts

Posted - Aug 09 2005 :  3:21:43 PM  Show Profile
normally VAX tries to avoid getting involved in formatting your code, since everyone seems to have a different standard. do you find this happens often? or only with specific cases?

i am wondering if the best approach would be to set up some suitable autotext rules for things like "while" and "for".

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

elenzil
Junior Member

13 Posts

Posted - Aug 09 2005 :  3:28:31 PM  Show Profile
It happens with pretty much every control block i write.

It's true that everyone has a different code-formatting style,
but in this case VC6 has provided a perfectly good check-box which is being ignored.

Maybe i will look into auto-text for while, do, for, if, else, etc.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18995 Posts

Posted - Aug 10 2005 :  5:11:40 PM  Show Profile
you may find this program useful for re-formatting your code:

http://sourceforge.net/projects/gcgreatcode/

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000