print("Hello")
def world():
print("Hello")
world()
Gets corrected to:
print("Hello")
def world():
print("Hello")
world()
I have tried to:
Because auto pep8 follows PEP8 which suggests 2 blank lines around top-level functions.
Surround top-level function and class definitions with two blank lines.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.