Home Download Buy Blog Forum Support

How to set tab size=8 for C files?

How to set tab size=8 for C files?

Postby dmajkic on Fri Oct 28, 2011 7:04 pm

I need it for specific project, where this is set as code standard.

But, whatever I put, it always displays with tab size of 4.
If I even put it into Base File.sublime-settings - User, as deault for all file types, it also will not display 8 for C files.
It works for other file types. Not for C.

SublimeText2 dev version 2135 (latest at this date)
dmajkic
 
Posts: 4
Joined: Mon Aug 15, 2011 10:23 am

Re: How to set tab size=8 for C files?

Postby adzenith on Fri Oct 28, 2011 7:10 pm

A couple things to check:
Do you have detect_indentation set to true? If so, it may be automatically setting the size to 4 because it looks like a file has 4-space indents.
Do you have the indent width set separately in Packages/C++/C++.sublime-settings? If so, this will override even your user settings.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: How to set tab size=8 for C files?

Postby dmajkic on Sat Oct 29, 2011 12:18 pm

Do you have detect_indentation set to true?


It was, I changed it to false but stil tab_size ignores 8 and stays on 4.

Do you have the indent width set separately in Packages/C++/C++.sublime-settings?


Checked both C and C++ sublime-settings. Nothing there.
dmajkic
 
Posts: 4
Joined: Mon Aug 15, 2011 10:23 am

Re: How to set tab size=8 for C files?

Postby dmajkic on Mon Oct 31, 2011 12:17 pm

Works fine with latest version.

Sinc tab_size=8 is not something I regularly use, is there a way to set it somewhere in project-settings?
dmajkic
 
Posts: 4
Joined: Mon Aug 15, 2011 10:23 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 19 guests