Author |
Topic |
|
elenzil
Junior Member
13 Posts |
Posted - Aug 08 2005 : 3:38:50 PM
|
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
|
(VA_X.dll file version 10.1.1418.0 built 2005.06.24)
|
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Aug 08 2005 : 3:52:19 PM
|
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 |
|
|
elenzil
Junior Member
13 Posts |
Posted - Aug 08 2005 : 5:02:01 PM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Aug 09 2005 : 3:21:43 PM
|
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 |
|
|
elenzil
Junior Member
13 Posts |
Posted - Aug 09 2005 : 3:28:31 PM
|
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.
|
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
|
|
Topic |
|