Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

taberror inconsistent use of tabs and spaces in indentation sublime

In Sublime Text, while editing a Python file:

Sublime Text menu -> Preferences -> Settings: Syntax-Specific:

{
    "tab_size": 4,
    "translate_tabs_to_spaces": true
}

Or, 
In the bottom right of the editor, 
click the part of the status bar where it says "Tab size"
click "Convert Indentation to Spaces" to correct an existing file.
 
PREVIOUS NEXT
Tagged: #taberror #inconsistent #tabs #spaces #indentation #sublime
ADD COMMENT
Topic
Name
6+8 =