J
J
javascriptcoder2015-09-20 12:22:07
css
javascriptcoder, 2015-09-20 12:22:07

sublime text tab size)?

In my sublime settings it says "tab_size: 2". Everything is fine, already tab is 2 spaces, but why when I upload all this to github, does it show that I have 4 spaces there, and not 2? I have "tab_size: 2" set in my sublime settings, what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dark_Scorpion, 2015-09-20
@javascriptcoder

Sublime only changes the display, the tabs stay the same. Github also shows the size of the tab set to it.
Option:
"translate_tabs_to_spaces": true
will make spaces of the specified length automatically inserted when tab is pressed. With your setup, there will be 2 spaces and there will be an automatic fit, as with tabs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question