Page 1 of 1
Format Source Code Tab spaces
Posted: Mon Sep 22, 2008 4:57 pm
by rajah
Hi Eran,
I have tabs set to 3 (default was 4) and I have spaces for tabs.
I used 'Source Code Format' and have NOT checked indent using
tab characters. Everything works fine except that the number of
spaces for tab is always 4 and not what you set in Editor settings.
Am I missing something or is it a bug?
Please let me know and as always, thanks for your support and prompt
replies.
Regards,
Rajah
CL 2128, Win XP SP2, Distributable
Re: Format Source Code Tab spaces
Posted: Mon Sep 22, 2008 5:43 pm
by eranif
rajah wrote:I have tabs set to 3 (default was 4) and I have spaces for tabs.
I used 'Source Code Format' and have NOT checked indent using
tab characters. Everything works fine except that the number of
spaces for tab is always 4 and not what you set in Editor settings.
Am I missing something or is it a bug?
I just noticed that the same option exist in 2 places...
There is 'Settings -> Editor -> genera' use Tab for indentation checkbox
and there is also 'plugins -> Source code formatter -> Options -> Custom tab' "Indent using tab character"
First of all, one of them should be removed (I think I will remove the one from the plugin menu).
Next, I noticed a bug in the formatter plugin -> it does not respect the tab size set in 'Settings -> Editor' but it rather hardcode it to be 4 - this will be fixed. Please open a bug for this one.
Eran
Re: Format Source Code Tab spaces
Posted: Mon Sep 22, 2008 7:27 pm
by rajah
eranif wrote:rajah wrote:I have tabs set to 3 (default was 4) and I have spaces for tabs.
I used 'Source Code Format' and have NOT checked indent using
tab characters. Everything works fine except that the number of
spaces for tab is always 4 and not what you set in Editor settings.
Am I missing something or is it a bug?
I just noticed that the same option exist in 2 places...
There is 'Settings -> Editor -> genera' use Tab for indentation checkbox
and there is also 'plugins -> Source code formatter -> Options -> Custom tab' "Indent using tab character"
First of all, one of them should be removed (I think I will remove the one from the plugin menu).
Next, I noticed a bug in the formatter plugin -> it does not respect the tab size set in 'Settings -> Editor' but it rather hardcode it to be 4 - this will be fixed. Please open a bug for this one.
Eran
Okay, I will do so,
Thanks,
Rajah
Re: Format Source Code Tab spaces
Posted: Mon Sep 22, 2008 7:43 pm
by eranif
rajah wrote:Okay, I will do so,
No need, already fixed it in SVN trunk
Eran