Hi,
It is nice to have various alternatives for conditional block formatting suc as below:
This one I would use for stepiing through code: if somecond then begin SomeCode; end else begin SomeOtherCode; end;
This one wouls be handy for breakpoints
if somecond then begin SomeCode; end else begin SomeOtherCode; end;
and finally, when I am reading a lot of code, I'd like to economize on line count and unnecessary blocks so I'd like to use something like
if somecond then SomeCode else SomeOtherCode;
I wonder if JCF could inter-convert between these formats.
Cheers, Adem
It is possible to do all (or maybe most of) this now.
Converting back and forth between
if somecond then begin SomeStatement; end
...and...
if somecond then SomeStatement;
is new in 2.01 on the "transform" options tab.
The rest is, or should be, block styles configuration. A block style for "else begin" on one line is new in 2.01. Are any of the others missing?
Log in to post a comment.
Hi,
It is nice to have various alternatives for conditional
block formatting suc as below:
This one I would use for stepiing through code:
if somecond then
begin
SomeCode;
end
else
begin
SomeOtherCode;
end;
This one wouls be handy for breakpoints
if somecond then
begin
SomeCode;
end else begin
SomeOtherCode;
end;
and finally, when I am reading a lot of code, I'd like
to economize on line count and unnecessary blocks
so I'd like to use something like
if somecond then SomeCode
else SomeOtherCode;
I wonder if JCF could inter-convert between these
formats.
Cheers,
Adem
It is possible to do all (or maybe most of) this now.
Converting back and forth between
if somecond then
begin
SomeStatement;
end
...and...
if somecond then
SomeStatement;
is new in 2.01 on the "transform" options tab.
The rest is, or should be, block styles configuration. A block style for "else begin" on one line is new in 2.01. Are any of the others missing?