Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: waterlin on December 16, 2009, 04:56:09 am

Title: the tab question
Post by: waterlin on December 16, 2009, 04:56:09 am
While I press Tab or indent the code, Code::Blocks will indent my code with a real tab.

This is not the way I want. I want Code::Blocks to replace the tab with 4 or 8 blank spaces. I try to set it in Code::Blocks --> Setting --> Editors, but it seems doesn't work.

Is it the right way to set it?

Thanks

Water Lin
Title: Re: the tab question
Post by: Pecan on December 16, 2009, 02:43:50 pm
MainMenu->Settings->Editor->GeneralSettings
See "Tab Options"

This has been working correctly for many years for me.

What OS are you running?
What version of CodeBlocks?
Tell us what steps to take to cause it to fail.
Title: Re: the tab question
Post by: waterlin on December 18, 2009, 04:05:07 am
I think I set it right now. I just made a mistake by setting the wrong parameters. Sorry for this.

Thanks

Water Lin