User forums > Using Code::Blocks

How to indent whitespace in selection?

(1/2) > >>

Kahenraz:
When I select a block of text and perform an indentation with tab, I want the whitespace to indent along with it. The reason for this is that I want my cursor to remain within the same horizontal block as I cursor down through the code. It bothers me that it truncates all the way to the left.

I can't seem to find a way to do this in Code::Blocks. Is there a setting for something like this?

Thank you.

oBFusCATed:
Can you try to give a better explanation? I'm not sure what the problem is...

You want the cursor to move with the indentation?

Quiss:
I think the problem is in line 11 (empty line), it doesn't indent when you select with multiple lines and press tab.

Kahenraz:

--- Quote from: Quiss on February 20, 2019, 09:17:15 am ---I think the problem is in line 11 (empty line), it doesn't indent when you select with multiple lines and press tab.

--- End quote ---

This is correct. I want the whitespace of my selection to be indented along with the rest of the code.

sodev:
Does not every IDE these days by default remove trailing whitespace? And isnt this a good thing for git and the like?

Navigation

[0] Message Index

[#] Next page

Go to full version