Changing the tab size for automatic code generation

Hi,

How can I change the size of tab indentations for automatically generated code by gii or yiic? 8 characters seem too much for me. I would like to set it to 4. I want to do this before generating all the code.

Thanks

As far as I know, the gii-generated codes are generally indented by tabs, not by spaces.

There are a few lines with indentation by spaces, but they are of 4 characters.

So if you see those codes with 8 characters of indentation, it’s probably because of your editor preferences.

Well, thank you.

You’re right. I’m using netbeans and all I had to do was to set tab size to 4 characters through Options > Editor > Formatting > Tab size.

I also had to disable "Expand Tabs to Spaces" option.