This is generally unnecessary. Python doesn't like inconsitently mixed tabs and spaces for indentation. Forgetting to indent the statements of a user-defined function IndentationError: unexpected indent. Unexpected indent on page 1 Split from this thread. Formatting failed. Find answers to Unexpected indent in Python code from the expert community at Experts Exchange … Formatting could fail due to a number of reasons. Please check each of the following. ESLint “Unexpected tab character” when “indent” rule set to “tab” How to indent/format a selection of code in VSCode with ctrl+shift+f ; Hitting Tab in Visual Studio selects block instead of adding indentation 1. One place for all extensions for Visual Studio, Azure DevOps Services, Azure DevOps Server and Visual Studio Code. As mentioned in the "expected an indented block" section, Python not only insists on indentation, it insists on consistent indentation. "python.formatting.provider": "autopep8" Installing autopep8 pip install pep8 pip install--upgrade autopep8 Custom Path. I'm having the same issue, I regularly install updates on insider fast but the problem persists on page 1, lines 3-6 there is an indent that I … Discover and install extensions and subscriptions to … As the Extension will resolve the path to the formatter based on Python executable being used or configured in python.pythonPath of settings.json. Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter. Cause: The path to the python executable is incorrect Ctrl-T opens the property panel, check that the Tabs as Spaces is ticked.. You can usually fix this by unindenting the lines in question by Shift-Tab to the first column and re-indent them Tab again.. Related: