User forums > Using Code::Blocks

Tab size setting per project

<< < (2/2)

dmoore:
The EditorTweaks plugin allows you to set tabs on a per editor basis, but you have to set it each time you open a new editor (Edit->Editor Tweaks->Tab Size). It would probably be straightforward enough to adapt that code to do a per project setting (storing some tab info in the project settings file and checking for that setting every time the user opens a new project file).

MortenMacFly:

--- Quote from: oBFusCATed on December 12, 2012, 02:30:42 pm ---Not possible unfortunately.

--- End quote ---
Wrong. It is possible.


--- Quote from: oBFusCATed on December 12, 2012, 02:30:42 pm ---You can probably try the EditorConfig plugin, but I'm not sure if it will work OK.

--- End quote ---
Thats the solution: The one in SVN I mean.

p2rkw:
And is it possible to set different source formatter for one project? Actually it seems that source formatter doesn't  respect values setted in editor tweaks.

daniloz:

--- Quote from: MortenMacFly on December 12, 2012, 07:50:25 pm ---
--- Quote from: oBFusCATed on December 12, 2012, 02:30:42 pm ---Not possible unfortunately.

--- End quote ---
Wrong. It is possible.


--- Quote from: oBFusCATed on December 12, 2012, 02:30:42 pm ---You can probably try the EditorConfig plugin, but I'm not sure if it will work OK.

--- End quote ---
Thats the solution: The one in SVN I mean.

--- End quote ---
Indeed, works like a charm. Thanks!  :D

...and next question: In Notepad++ it's possible to define (globally) the TAB size for each different language (c++, html, java etc.), which I personally find very useful. Is it possible to do the same in codeblocks?

I know that using the EditorConfig I can workaround that by just defining the TAB size for each project individually. However, if a project uses more than one language, it would profit from the per-language setting.

Just asking... ;)

MortenMacFly:

--- Quote from: daniloz on December 13, 2012, 10:08:53 am ---Just asking... ;)

--- End quote ---
Not possible today, but it could be done by enhancing the editor config plugin.

Navigation

[0] Message Index

[*] Previous page

Go to full version