User forums > Using Code::Blocks
How to indent whitespace in selection?
Kahenraz:
Not if it directly contradicts a coding style. Every time I indent something, I have to manually cursor around and indent the whitespace.
I don't have this problem on Eclipse as it will both indent whitespace in selections as well as with the code style formatter. The same goes for any of my other editors.
This is my first time using Code::Blocks and I was very surprised as this behavior.
As far as Git is concerned, it is a non-issue either way as it has options natively to ignore whitespace changes.
stahta01:
Did you make sure that "Strip Trailing Blanks" is unchecked.
It then works for me once I have the spaces indented once; does not change zero spaces on a line.
Edit2: It looks like you already noticed this.
Settings -> Editor
Tab: Editor Setting
Section: End of Line options
Tim S.
Kahenraz:
The problem seems to be that the IDE will not indent lines which are empty.
Can an option be added to allow this? Is this behavior that can be modified by a plugin?
Thank you.
oBFusCATed:
I doubt a plugin can do this. I tested scite and geany and both editors behave the same as codeblocks, so I think the change should be introduced in scintilla's Indent function (Editor::Indent).
Navigation
[0] Message Index
[*] Previous page
Go to full version