I'm looking to enable automatic indentation of Python function arguments, as shown in the example below generated with use of pycharm. I had a look at a similar discussion but the discussed solutions do not appear to solve this problem.
autoIndent
setting
indent a whole block manually: select the whole block, and then click Tab . If you want to indent backward, you do it with Shift + Tab .
Auto-indent can be disabled with the Editor > Indentation > Auto-indent preference. When disabled, the Tab key may be used to insert indentation, depending on its configuration. Wing also auto-indents code when pasting multiple lines of Python.
This is a known issue for the Python VSCode extension and it can currently not be fixed because of limitations in the extension API. More specifically the line in the editor cannot know the content of other lines. I am not aware of any fix for this issue, but I agree that it decreases the experience of working with VSCode by far.
See this issue for further information: https://github.com/Microsoft/vscode-python/issues/701
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With