Sublime Forum

How to set tab size=8 for C files?

#1

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)

0 Likes

#2

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.

0 Likes

#3

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

Checked both C and C++ sublime-settings. Nothing there.

0 Likes

#4

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?

0 Likes