Format Source Code Tab spaces

General questions regarding the usage of CodeLite
rajah
CodeLite Enthusiast
Posts: 30
Joined: Mon Aug 25, 2008 10:41 pm
Contact:

Format Source Code Tab spaces

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Format Source Code Tab spaces

Post 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
Make sure you have read the HOW TO POST thread
rajah
CodeLite Enthusiast
Posts: 30
Joined: Mon Aug 25, 2008 10:41 pm
Contact:

Re: Format Source Code Tab spaces

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Format Source Code Tab spaces

Post by eranif »

rajah wrote:Okay, I will do so,
No need, already fixed it in SVN trunk

Eran
Make sure you have read the HOW TO POST thread
Post Reply