Home Download Buy Blog Forum Support

ST3: Tabs being converted to spaces

ST3: Tabs being converted to spaces

Postby simonwheatley on Thu Mar 07, 2013 8:54 am

I've just noticed that all my tabs are being converted to spaces. This seems to have started today (I think).

I have the following settings in my Preferences.sublime-settings as per the Indentation Settings docs (http://www.sublimetext.com/docs/3/indentation.html).

Code: Select all
{
   "color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
   "dictionary": "Packages/Language - English/en_GB.dic",
    "tab_size": 4,
    "translate_tabs_to_spaces": false,
    "detect_indentation": false
}


Here's the default settings:

Code: Select all
    // The number of spaces a tab is considered equal to
    "tab_size": 4,

    // Set to true to insert spaces when tab is pressed
    "translate_tabs_to_spaces": false,

    // If translate_tabs_to_spaces is true, use_tab_stops will make tab and
    // backspace insert/delete up to the next tabstop
    "use_tab_stops": true,

    // Set to false to disable detection of tabs vs. spaces on load
    "detect_indentation": true,

    // Calculates indentation automatically when pressing enter
    "auto_indent": true,

    // Makes auto indent a little smarter, e.g., by indenting the next line
    // after an if statement in C. Requires auto_indent to be enabled.
    "smart_indent": true,

    // Adds whitespace up to the first open bracket when indenting. Requires
    // auto_indent to be enabled.
    "indent_to_bracket": false,

    // Trims white space added by auto_indent when moving the caret off the
    // line.
    "trim_automatic_white_space": true,


I don't seem to have a language specific preferences file.
simonwheatley
 
Posts: 12
Joined: Wed Aug 01, 2012 4:34 pm

Re: ST3: Tabs being converted to spaces

Postby simonwheatley on Fri Mar 08, 2013 8:04 am

Aha. The "Indentation: Convert to Tabs" command works for this. :)
simonwheatley
 
Posts: 12
Joined: Wed Aug 01, 2012 4:34 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Majestic-12 [Bot], Yahoo [Bot] and 28 guests