Page 1 of 1
Source code formatter
Posted: Thu Aug 07, 2008 3:26 pm
by katia
Hello,
Congratulations for your work!Great IDE with many capabilities!
The source code formatting is quite satisfying but the option "Fill Empty Lines" doesn't seem to work.
There is no change.
Re: Source code formatter
Posted: Thu Aug 07, 2008 4:06 pm
by eranif
katia wrote:Congratulations for your work!Great IDE with many capabilities!
Thanks
katia wrote:he source code formatting is quite satisfying but the option "Fill Empty Lines" doesn't seem to work.
Actually it does. depends what were you expecting it to do.
From the Astyle manual (the soruce code formatter is based on the ASyle code):
-E,--fill-empty-lines
Fill empty lines with the white space of their previous lines.
It actually adds the previous line whitespace, so if you have an empty line, it will prepend a whitespace character to it according to what set in the previous line. To see that it actually does that, enable whitespace visualisation from: Settings -> Editor -> Whitespaces visibility' and select it to 'always'
Format a file with and without this flag enabled and see the differences
Eran
Re: Source code formatter
Posted: Thu Aug 07, 2008 4:38 pm
by katia
Yes, I saw the difference.
I expected something else...
Also, could you tell me what is the functionality of the option "One Line Keep Blocks"?
Thanks
Re: Source code formatter
Posted: Thu Aug 07, 2008 4:47 pm
by eranif
To see a complete list of the formatter functionality, see here:
http://astyle.sourceforge.net/astyle.html
Eran