Page 1 of 1

Keep empty lines

Posted: Tue Jul 19, 2011 6:16 pm
by Marc
Hello,

Is there a setting that will allow empty lines to NOT be deleted?

Thanks.

Marc

Re: Keep empty lines

Posted: Wed Jul 20, 2011 4:32 pm
by tjulian
Look under Settings -> Global Editor Preferences -> General -> Save Options

Re: Keep empty lines

Posted: Thu Jul 21, 2011 10:43 pm
by Marc
Nope that is not the setting I was looking for.

If I have code as follows:

if(y ==5)
{

//Do magic...
y++;

}


And I format it to the style I've defined I end up with:

if(y ==5)
{
//Do magic...
y++;
}


The problem is I'd like to keep these blank lines.

Thanks.

Re: Keep empty lines

Posted: Fri Jul 22, 2011 8:50 am
by eranif
The default options that comes with codelite's source code formatter does not remove those empty lines for me.
However, this may be a bug in the current version you are using - in trunk, I have upgraded codelite's the latest Astyle

Eran

Re: Keep empty lines

Posted: Fri Jul 22, 2011 6:08 pm
by Marc
What do your formatter settings look like?

Is there a pre-compiled binary for Windows of the main trunk?

Thanks

Re: Keep empty lines

Posted: Sat Jul 23, 2011 9:09 pm
by eranif
PreDefined Style -> Linux
Custom -> blocks, preprocessors, break-else-if are enabled
Marc wrote:Is there a pre-compiled binary for Windows of the main trunk?
Nope, sorry

Eran