

Spaces instead of tabs for indentation is objectively bad you need to consider the visually impaired (of which there are a lot) who use giant font sizes and can benefit from customizable tab widths
#Visual studio code python formatter software#
I’ve been coding for almost a decade and I’ve experienced the software development workforce, I know how it works. Introduction to Programming with Python (from Microsoft Virtual Academy)./r/git and /r/mercurial - don't forget to put your code in a repo!./r/pyladies (women developers who love python)./r/coolgithubprojects (filtered on Python projects)./r/pystats (python in statistical analysis and machine learning)./r/inventwithpython (for the books written by /u/AlSweigart).



Luckily the fix is simply turning this off by adding "tectIndentation" : false to the global or language specific settings in addition to the values specified by the accepted answer. This can cause a lot of frustration, if the indentation detected does not conform with your user settings (even after following the default answer). So having had a wrong indentation once, one can experience that the suggested answer does not solve your issue as the incorrect indentation was detected in another file. Some extensions do not choose indentation but others do, and what's worse is that vscode seem to "remember" indentation.
#Visual studio code python formatter how to#
The problem most likely stems from the fact that vscode and their extensions themselves decide how to indent code. For all finding that the default answer did not solve your problem, here is a method based on this discussion/issue on the vscode github.
