“Uso inconsistente de pestañas y espacios en la mueca” Código de respuesta

Uso inconsistente de pestañas y espacios en la mueca

# in vscode
# try with Cmd+Shift+P and enter the command 'convert indentation to tabs'
Condemned Chamois

Taberror: uso inconsistente de pestañas y espacios en la muescas

#type in command window:
autopep8 -i my_file.py
#replace my_file.py with your name of your file name or file path and done
Annoying Alpaca

Taberror Uso inconsistente de pestañas y espacios en muescas 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.
Condemned Crayfish

Respuestas similares a “Uso inconsistente de pestañas y espacios en la mueca”

Preguntas similares a “Uso inconsistente de pestañas y espacios en la mueca”

Más respuestas relacionadas con “Uso inconsistente de pestañas y espacios en la mueca” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código