Sublime Forum

Sublime 2 - Problems with indentation settings [Solved]

#1

Hi Guys!

I’m using Sublime 2 on Mac OS X and have a problem with the indentation settings. They currently look like the settings pasted below. The settings are equal for User, Plain Text and Perl. I’ve also try to with “detect_indentation”: true but if I create a new plain text file, or open some perl file it’s still indented using tab and not spaces like it’s set up in the settings.

I’ve to manually click on the bottom right of the screen and select “Indent using spaces” so it actually changes from TAB to SPACE.

Any ideas? I’ve searched online but haven’t found a solution to my problem.
Thanks!!

Settings for User, Perl & Plain Text:

{ "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", "font_size": 12.0, "open_files_in_new_window": false, "tab_size": 4, "translate_tab_to_space": true, "detect_indentation": false }

0 Likes

#2

I think you have a typo(s) in your settings; “tab” should be “tabs” and “space” should be “spaces” as seen below.

"translate_tabs_to_spaces": true
0 Likes

#3

You’re right! That solved my problem, I was going crazy :smiley: Thanks for your help!!

For everyone else, correct name should be: translate_tabs_to_spaces
Note the S and the end of the word tabs and spaces.

0 Likes