my sublime tab is too short ,don’t like it,I wish can set it more widther…
Tab is too short!
You can set the tab size in settings
https://www.sublimetext.com/docs/3/indentation.html
my means is tab width ,not tab size
and python need tab_size=4
so…
I want to set tab width,
I might be wrong, but I believe it depends on the font width. Maybe try different fonts.
It’s my sublime version , 1 tab width > 4 space width ,I need 1 tab width equal 4 space width
version 3.0 build 3143
thank you!
You have “translate_tabs_to_spaces” set to true, so tabs get converted to spaces. That’s why you have 4 spaces.
python require 1 tab width equal 4 space width,I find It’s my font-face not suitable ,when I set my sublime default font-face ,it’s very good. thank you!
I might be misunderstanding you, but python (pep8) prefers spaces for indentation.
(https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces)
A strong preference seems to be for 4 spaces.
(http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#whitespace-1)
From this we can conclude that you need translate_tabs_to_spaces = true
and tab_size = 4
.
There is no requirement for one tab to be as wide as 4 spaces, what gave you that idea?
The font-face is only an aesthetic choice, so the code looks nicer and more organized visually.