print("Hello")
def world():
print("Hello")
world()
Gets corrected to:
print("Hello")
def world():
print("Hello")
world()
I have tried to:
You can disable this by using the following configuration in your .vscode/settings.json
{
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
"--ignore=E302"
]
}
Here are all the autopep8 features explained: https://github.com/hhatto/autopep8#features
Because autopep8 follows PEP8 which suggests 2 blank lines around top-level functions.
Surround top-level function and class definitions with two blank lines.
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